X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=994fe8c8562831626344731a4f1fb30ff82c6eea;hb=f114ad188353910f1714a2df04affb7e5ee58253;hp=727650ef23efa77e18e670889ab3b4e83c54322c;hpb=35abc4bb64bbb461e6448beed10484c028b74340;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 727650ef23..994fe8c856 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -12,39 +12,21 @@ use Friendica\App; use Friendica\Core\Renderer; -use Friendica\Core\System; +use Friendica\DI; + +/* + * This script can be included even when the app is in maintenance mode which requires us to avoid any config call + */ function smoothly_init(App $a) { - $a->setActiveTemplateEngine('smarty3'); + Renderer::setActiveTemplateEngine('smarty3'); $cssFile = null; - $ssl_state = null; - $baseurl = System::baseUrl($ssl_state); - $a->page['htmlhead'] .= <<< EOT + $ssl_state = false; + $baseurl = DI::baseUrl()->get($ssl_state); + DI::page()['htmlhead'] .= <<< EOT