From 7c462f27631304fb352e6be8ced6800eeff5567d Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 19 Dec 2023 08:53:22 -0700 Subject: [PATCH] * Filemanager: Fix missing site icon in anonymous file share --- filemanager/src/Sharing/AnonymousList.php | 6 ++++++ filemanager/templates/default/index.xet | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/filemanager/src/Sharing/AnonymousList.php b/filemanager/src/Sharing/AnonymousList.php index 49045ae121..48d5828eb2 100644 --- a/filemanager/src/Sharing/AnonymousList.php +++ b/filemanager/src/Sharing/AnonymousList.php @@ -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 diff --git a/filemanager/templates/default/index.xet b/filemanager/templates/default/index.xet index b2417a307b..3f64ad6f6f 100644 --- a/filemanager/templates/default/index.xet +++ b/filemanager/templates/default/index.xet @@ -52,7 +52,7 @@