* Filemanager: Fix missing site icon in anonymous file share

This commit is contained in:
nathan 2023-12-19 08:53:22 -07:00
parent 39e12f19b2
commit 7c462f2763
2 changed files with 7 additions and 1 deletions

View File

@ -60,6 +60,12 @@ class AnonymousList extends filemanager_ui
$content['nm']['no_filter'] = true;
$content['nm']['favorites'] = false;
$logo = !empty($GLOBALS['egw_info']['server']['login_logo_header']) ? Api\Framework::get_login_logo_or_bg_url('login_logo_header', 'logo')
: Api\Framework::get_login_logo_or_bg_url('login_logo_file', 'logo');
if($logo)
{
$this->etemplate->setElementAttribute("nm[logo]", "src", $logo);
}
if(!Vfs::is_writable($content['nm']['path']))
{
// share is read-only, we can just hide everything

View File

@ -52,7 +52,7 @@
</template>
<template id="filemanager.index.header_left" template="" lang="" group="0" version="1.9.002">
<!-- Anonymous view has some extras - logo & button -->
<et2-image src="logo" disabled="!@show_refresh" hideOnReadonly="true" width="150px"></et2-image>
<et2-image id="logo" disabled="!@show_refresh" hideOnReadonly="true" width="150px"></et2-image>
<et2-button id="reload" statustext="Reload" onclick="app.filemanager.et2.getInstanceManager().refresh()" disabled="!@show_refresh" hideOnReadonly="true" image="reload" noSubmit="true"></et2-button>
<file label="Upload" statustext="Select file to upload in current directory" id="upload"
progress_dropdownlist="true" drop_target="filemanager-index" multiple="true"