]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/smoothly/theme.php
Ensure that the baseurl return value is a string
[friendica.git] / view / theme / smoothly / theme.php
index f56aa30f9e049c4cbd07ff9ead67b120f6e68739..73ff81441c740ba2a30e62e2731a483eb6cb4b47 100644 (file)
@@ -45,7 +45,7 @@ function smoothly_init(App $a) {
 
        $cssFile = null;
        $ssl_state = false;
-       $baseurl = DI::baseUrl();
+       $baseurl = (string)DI::baseUrl();
        DI::page()['htmlhead'] .= <<< EOT
 
 <script>
@@ -112,7 +112,7 @@ if (! function_exists('_js_in_foot')) {
                /** @purpose insert stuff in bottom of page
                */
                $ssl_state = false;
-               $baseurl = DI::baseUrl();
+               $baseurl = (string)DI::baseUrl();
                $bottom['$baseurl'] = $baseurl;
                $tpl = Renderer::getMarkupTemplate('bottom.tpl');