]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "primarynav uses menustart and menuend"
authorEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 17:39:31 +0000 (12:39 -0500)
committerEvan Prodromou <evan@status.net>
Mon, 7 Mar 2011 17:39:31 +0000 (12:39 -0500)
This reverts commit 8e03c83a57e29a0e840b44b1e5cb04e1422a845f.

lib/primarynav.php

index de3ea2641f2671a489e05d29433ac9a0573c8890..296328d8bdd4e0ef6e2ea350f4f25a3b21174efd 100644 (file)
@@ -50,7 +50,8 @@ class PrimaryNav extends Menu
     function show()
     {
         $user = common_current_user();
-        $this->menuStart();
+        $this->action->elementStart('ul', array('class' => 'nav',
+                                        'id' => 'site_nav_global_primary'));
         if (Event::handle('StartPrimaryNav', array($this->action))) {
             if (!empty($user)) {
                 $this->action->menuItem(common_local_url('profilesettings'),
@@ -88,12 +89,7 @@ class PrimaryNav extends Menu
 
             Event::handle('EndPrimaryNav', array($this->action));
         }
-        $this->menuEnd();
+
         $this->action->elementEnd('ul');
     }
-    
-    function id()
-    {
-        return 'site_nav_global_primary';
-    }
 }