]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/theme.php
Merge pull request #8079 from ozero/patch-1
[friendica.git] / view / theme / frio / theme.php
index 2cd30ad1f1f4e9495fb1f329ccde8e7c68b8f666..513bb4e61d7d9490d262d461c7d1ec1be2f3b698 100644 (file)
@@ -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';
        }