X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Ftheme%2Fsmoothly%2Ftheme.php;h=994fe8c8562831626344731a4f1fb30ff82c6eea;hb=e389fe945f7445ba43c3586aded9496788530df0;hp=555b65eed31c5c0509d9c256167f78b0c7d525a5;hpb=2143a4b993a8b75d98512a4d8a5ae62d2856a541;p=friendica.git diff --git a/view/theme/smoothly/theme.php b/view/theme/smoothly/theme.php index 555b65eed3..994fe8c856 100644 --- a/view/theme/smoothly/theme.php +++ b/view/theme/smoothly/theme.php @@ -11,39 +11,22 @@ */ use Friendica\App; -use Friendica\Core\System; +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) { - $a->set_template_engine('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