]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
cut-and-paste error in TagSubMenu
authorEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 22:19:11 +0000 (18:19 -0400)
committerEvan Prodromou <evan@status.net>
Tue, 5 Apr 2011 22:19:11 +0000 (18:19 -0400)
plugins/TagSub/TagSubPlugin.php
plugins/TagSub/tagsubmenu.php

index 13e525bb62d5529955d187e946a802760910b3dd..8fbb1133627856bafee58a3108dde4f4870d3578 100644 (file)
@@ -252,15 +252,6 @@ class TagSubPlugin extends Plugin
             $menu->submenu(_m('Tags'), $tagSubMenu);
         }
 
-        foreach ($tags as $tag) {
-                $menu->out->menuItem(common_local_url('tag',
-                                                      array('tag' => $tag)),
-                                     sprintf('#%s', $tag),
-                                     sprintf(_('Notices tagged with %s'), $tag),
-                                     $menu->actionName == 'tag' && $menu->action->arg('tag') == $tag,
-                                     'nav_streams_tag_'.$tag);
-        }
-
         return true;
     }
 
index 44770651d93047b3750a380c885a5ff5bbbbb14d..e2ddf04ef9893e321ba298acb688f2a77dd5617f 100644 (file)
@@ -61,7 +61,7 @@ class TagSubMenu extends Menu
     {
         $this->out->elementStart('ul', array('class' => 'nav'));
 
-        foreach ($tags as $tag) {
+        foreach ($this->tags as $tag) {
                 $this->out->menuItem(common_local_url('tag',
                                                       array('tag' => $tag)),
                                      sprintf('#%s', $tag),