From 8e03c83a57e29a0e840b44b1e5cb04e1422a845f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Mar 2011 12:37:07 -0500 Subject: [PATCH] primarynav uses menustart and menuend --- lib/primarynav.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/primarynav.php b/lib/primarynav.php index 296328d8bd..de3ea2641f 100644 --- a/lib/primarynav.php +++ b/lib/primarynav.php @@ -50,8 +50,7 @@ class PrimaryNav extends Menu function show() { $user = common_current_user(); - $this->action->elementStart('ul', array('class' => 'nav', - 'id' => 'site_nav_global_primary')); + $this->menuStart(); if (Event::handle('StartPrimaryNav', array($this->action))) { if (!empty($user)) { $this->action->menuItem(common_local_url('profilesettings'), @@ -89,7 +88,12 @@ class PrimaryNav extends Menu Event::handle('EndPrimaryNav', array($this->action)); } - + $this->menuEnd(); $this->action->elementEnd('ul'); } + + function id() + { + return 'site_nav_global_primary'; + } } -- 2.39.5