cut-and-paste error in TagSubMenu

This commit is contained in:
Evan Prodromou 2011-04-05 18:19:11 -04:00
parent 3377cd59ce
commit 1459443b21
2 changed files with 1 additions and 10 deletions

View File

@ -252,15 +252,6 @@ class TagSubPlugin extends Plugin
$menu->submenu(_m('Tags'), $tagSubMenu); $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; return true;
} }

View File

@ -61,7 +61,7 @@ class TagSubMenu extends Menu
{ {
$this->out->elementStart('ul', array('class' => 'nav')); $this->out->elementStart('ul', array('class' => 'nav'));
foreach ($tags as $tag) { foreach ($this->tags as $tag) {
$this->out->menuItem(common_local_url('tag', $this->out->menuItem(common_local_url('tag',
array('tag' => $tag)), array('tag' => $tag)),
sprintf('#%s', $tag), sprintf('#%s', $tag),