]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge remote-tracking branch 'upstream/develop' into lower-platform
[friendica.git] / view / theme / frio / theme.php
index 1e255e38b042e917aed2c7c0cfe1d23a03eb692b..2cd30ad1f1f4e9495fb1f329ccde8e7c68b8f666 100644 (file)
@@ -35,8 +35,8 @@ function frio_init(App $a)
 
        // if the device is a mobile device set js is_mobile
        // variable so the js scripts can use this information
-       if ($a->is_mobile || $a->is_tablet) {
-               $a->page['htmlhead'] .= <<< EOT
+       if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
+               DI::page()['htmlhead'] .= <<< EOT
                        <script type="text/javascript">
                                var is_mobile = 1;
                        </script>
@@ -45,7 +45,7 @@ EOT;
 
        $enable_compose = \Friendica\Core\PConfig::get(local_user(), 'frio', 'enable_compose');
        $compose = $enable_compose === '1' || $enable_compose === null && Config::get('frio', 'enable_compose') ? 1 : 0;
-       $a->page['htmlhead'] .= <<< HTML
+       DI::page()['htmlhead'] .= <<< HTML
                <script type="text/javascript">
                        var compose = $compose;
                </script>