]> git.mxchange.org Git - friendica.git/commitdiff
modified item_photo_menu hook
authorfriendica <info@friendica.com>
Thu, 12 Jan 2012 01:34:02 +0000 (17:34 -0800)
committerfriendica <info@friendica.com>
Thu, 12 Jan 2012 01:34:02 +0000 (17:34 -0800)
include/conversation.php

index 6f235f701a81c2fb4dcb2df806ef8c6ea266b224..d05b3be5cc9ddd72a7b0879c33a1c3f172bf69d0 100644 (file)
@@ -733,10 +733,12 @@ function item_photo_menu($item){
        );
        
        
-       $args = array($item, &$menu);
+       $args = array('item' => $item, 'menu' => $menu);
        
        call_hooks('item_photo_menu', $args);
-       
+
+       $menu = $args['menu'];  
+
        $o = "";
        foreach($menu as $k=>$v){
                if ($v!="") $o .= "<li><a href='$v'>$k</a></li>\n";