X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=994fe8c8562831626344731a4f1fb30ff82c6eea;hb=f114ad188353910f1714a2df04affb7e5ee58253;hp=f373cdec5ff56561096c7c556c2b8b2ee750928e;hpb=6d7362da4134cce31f28a5efa2c623a11f89afc2;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index f373cdec5f..994fe8c856 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -12,15 +12,18 @@ 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) { Renderer::setActiveTemplateEngine('smarty3'); $cssFile = null; - $ssl_state = null; - $baseurl = System::baseUrl($ssl_state); + $ssl_state = false; + $baseurl = DI::baseUrl()->get($ssl_state); DI::page()['htmlhead'] .= <<< EOT