Add favicon to setup pages

This commit is contained in:
Stephen Abello
2021-08-13 15:54:43 +02:00
parent 75dbaada72
commit 9de014c9cb
3 changed files with 9 additions and 3 deletions

BIN
setup/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

View File

@@ -227,4 +227,12 @@ class SetupPage extends NiceWebPage
{
// Do nothing
}
/**
* @inheritDoc
*/
protected function GetFaviconAbsoluteUrl()
{
return utils::GetAbsoluteUrlAppRoot().'setup/favicon.ico';
}
}

View File

@@ -1203,9 +1203,7 @@ JS;
}
// Favicon
if (class_exists('MetaModel') && MetaModel::GetConfig()) {
$aData['aPage']['sFaviconUrl'] = $this->GetFaviconAbsoluteUrl();
}
$aData['aPage']['sFaviconUrl'] = $this->GetFaviconAbsoluteUrl();
$oTwigEnv = TwigHelper::GetTwigEnvironment(BlockRenderer::TWIG_BASE_PATH, BlockRenderer::TWIG_ADDITIONAL_PATHS);
// Render final TWIG into global HTML