]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge pull request #8019 from nupplaphil/task/replace_getClass
[friendica.git] / view / theme / frio / theme.php
index 1e255e38b042e917aed2c7c0cfe1d23a03eb692b..5fe0152748ec59dd22b24c1d720a18a05838e0f4 100644 (file)
@@ -35,7 +35,7 @@ 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) {
+       if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
                $a->page['htmlhead'] .= <<< EOT
                        <script type="text/javascript">
                                var is_mobile = 1;