]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix a couple of errors in PublicGroupNav
authorEvan Prodromou <evan@controlyourself.ca>
Thu, 15 Jan 2009 20:14:32 +0000 (20:14 +0000)
committerEvan Prodromou <evan@controlyourself.ca>
Thu, 15 Jan 2009 20:14:32 +0000 (20:14 +0000)
lib/publicgroupnav.php

index c8588249634c31d3985593f9cf3c17342ed5a224..abda8663e3a4a100e02ddaaac16af2cd2445079a 100644 (file)
@@ -53,7 +53,7 @@ require_once INSTALLDIR.'/lib/widget.php';
  * @see      HTMLOutputter
  */
 
-class PublicGroupNav
+class PublicGroupNav extends Widget
 {
     var $action = null;
 
@@ -79,18 +79,18 @@ class PublicGroupNav
     {
         $this->action->elementStart('ul', array('class' => 'nav'));
 
-        $this->menuItem(common_local_url('public'), _('Public'),
+        $this->out->menuItem(common_local_url('public'), _('Public'),
             _('Public timeline'), $this->action == 'public');
 
-        $this->menuItem(common_local_url('tag'), _('Recent tags'),
+        $this->out->menuItem(common_local_url('tag'), _('Recent tags'),
             _('Recent tags'), $this->action == 'tag');
 
         if (count(common_config('nickname', 'featured')) > 0) {
-            $this->menuItem(common_local_url('featured'), _('Featured'),
+            $this->out->menuItem(common_local_url('featured'), _('Featured'),
                 _('Featured users'), $this->action == 'featured');
         }
 
-        $this->menuItem(common_local_url('favorited'), _('Popular'),
+        $this->out->menuItem(common_local_url('favorited'), _('Popular'),
             _("Popular notices"), $this->action == 'favorited');
 
         $this->action->elementEnd('ul');