From 2272044ad1c8bcde9d79aeaf1b135dc7b47784da Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 7 Mar 2011 12:42:51 -0500 Subject: [PATCH] wrapper div for primary nav --- lib/action.php | 2 ++ lib/primarynav.php | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/action.php b/lib/action.php index dc95b030d2..7ef959bc4e 100644 --- a/lib/action.php +++ b/lib/action.php @@ -536,8 +536,10 @@ class Action extends HTMLOutputter // lawsuit */ function showPrimaryNav() { + $this->elementStart('div', array('id' => 'site_nav_global_primary')); $pn = new PrimaryNav($this); $pn->show(); + $this->elementEnd('div'); } /** diff --git a/lib/primarynav.php b/lib/primarynav.php index 296328d8bd..7748d7a1c7 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->action->elementStart('ul', array('class' => 'nav')); if (Event::handle('StartPrimaryNav', array($this->action))) { if (!empty($user)) { $this->action->menuItem(common_local_url('profilesettings'), -- 2.39.5