diff --git a/install/core/Installer.php b/install/core/Installer.php index 5750a52779..1b712ebd58 100644 --- a/install/core/Installer.php +++ b/install/core/Installer.php @@ -753,4 +753,9 @@ class Installer 'scheduledJobId' => $scheduledJob->getId(), ]); } + + public function getLogoSrc(string $theme): string + { + return $this->getMetadata()->get(['themes', $theme, 'logo']) ?? 'client/img/logo.svg'; + } } diff --git a/install/core/actions/main.php b/install/core/actions/main.php index 9dd9e8c6d9..d613d95cf1 100644 --- a/install/core/actions/main.php +++ b/install/core/actions/main.php @@ -55,4 +55,4 @@ foreach ($installer->getThemeList() as $item) { $smarty->assign('themeLabel', $language->translate('theme', 'fields', 'Settings')); $smarty->assign('fields', $fields); -$smarty->assign("themes", $themes); \ No newline at end of file +$smarty->assign("themes", $themes); diff --git a/install/core/tpl/header.tpl b/install/core/tpl/header.tpl index 891c1e8975..aa008d471b 100644 --- a/install/core/tpl/header.tpl +++ b/install/core/tpl/header.tpl @@ -1,5 +1,5 @@