]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Move PConfig::get() to DI::pConfig()->get()
[friendica.git] / view / theme / frio / theme.php
index 5fe0152748ec59dd22b24c1d720a18a05838e0f4..14f93f6b7e401157aec3b47322da180e76987f52 100644 (file)
@@ -36,16 +36,16 @@ 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 (DI::mode()->isMobile() || DI::mode()->isMobile()) {
-               $a->page['htmlhead'] .= <<< EOT
+               DI::page()['htmlhead'] .= <<< EOT
                        <script type="text/javascript">
                                var is_mobile = 1;
                        </script>
 EOT;
        }
 
-       $enable_compose = \Friendica\Core\PConfig::get(local_user(), 'frio', 'enable_compose');
+       $enable_compose = DI::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>
@@ -127,7 +127,7 @@ function frio_item_photo_links(App $a, &$body_info)
 function frio_item_photo_menu(App $a, &$arr)
 {
        foreach ($arr['menu'] as $k => $v) {
-               if (strpos($v, 'poke/?f=&c=') === 0 || strpos($v, 'message/new/') === 0) {
+               if (strpos($v, 'poke?c=') === 0 || strpos($v, 'message/new/') === 0) {
                        $v = 'javascript:addToModal(\'' . $v . '\'); return false;';
                        $arr['menu'][$k] = $v;
                }
@@ -181,7 +181,7 @@ function frio_contact_photo_menu(App $a, &$args)
        // Add to pm and poke links a new key with the value 'modal'.
        // Later we can make conditions in the corresponing templates (e.g.
        // contact_template.tpl)
-       if (strpos($pokelink, 'poke/?f=&c=' . $cid) !== false) {
+       if (strpos($pokelink, 'poke?c=' . $cid) !== false) {
                $args['menu']['poke'][3] = 'modal';
        }