X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=994fe8c8562831626344731a4f1fb30ff82c6eea;hb=f114ad188353910f1714a2df04affb7e5ee58253;hp=3efcf54f413a4a96c4f691f87c6a81f4964f78e7;hpb=1f58bcc114928a5a3cd97bd0de34a5aa7d585931;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 3efcf54f41..994fe8c856 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -11,46 +11,22 @@ */ use Friendica\App; +use Friendica\Core\Renderer; +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) { - set_template_engine($a, 'smarty3'); + Renderer::setActiveTemplateEngine('smarty3'); $cssFile = null; - $ssl_state = null; - $baseurl = App::get_baseurl($ssl_state); - $a->page['htmlhead'] .= <<< EOT + $ssl_state = false; + $baseurl = DI::baseUrl()->get($ssl_state); + DI::page()['htmlhead'] .= <<< EOT