From fbc5de32681985bcc2d22396e6af4789d624b39e Mon Sep 17 00:00:00 2001 From: Samantha Doherty Date: Wed, 18 May 2011 12:13:34 -0400 Subject: [PATCH] Add missing li tags in settings and admin menus. --- lib/adminpanelnav.php | 4 ++++ lib/settingsnav.php | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/adminpanelnav.php b/lib/adminpanelnav.php index b64a2a6a96..245438c614 100644 --- a/lib/adminpanelnav.php +++ b/lib/adminpanelnav.php @@ -61,6 +61,7 @@ class AdminPanelNav extends Menu // Stub section w/ home link $this->action->elementStart('ul'); + $this->action->elementStart('li'); // TRANS: Header in administrator navigation panel. $this->action->element('h3', null, _m('HEADER','Home')); $this->action->elementStart('ul', 'nav'); @@ -74,9 +75,11 @@ class AdminPanelNav extends Menu $this->action == 'all', 'nav_timeline_personal'); $this->action->elementEnd('ul'); + $this->action->elementEnd('li'); $this->action->elementEnd('ul'); $this->action->elementStart('ul'); + $this->action->elementStart('li'); // TRANS: Header in administrator navigation panel. $this->action->element('h3', null, _m('HEADER','Admin')); $this->action->elementStart('ul', array('class' => 'nav')); @@ -166,6 +169,7 @@ class AdminPanelNav extends Menu Event::handle('EndAdminPanelNav', array($this)); } $this->action->elementEnd('ul'); + $this->action->elementEnd('li'); $this->action->elementEnd('ul'); } } diff --git a/lib/settingsnav.php b/lib/settingsnav.php index 14eab6dc1d..f8c78ec6f1 100644 --- a/lib/settingsnav.php +++ b/lib/settingsnav.php @@ -61,6 +61,7 @@ class SettingsNav extends Menu // Stub section w/ home link $this->action->elementStart('ul'); + $this->action->elementStart('li'); // TRANS: Header in settings navigation panel. $this->action->element('h3', null, _m('HEADER','Home')); $this->action->elementStart('ul', 'nav'); @@ -72,11 +73,12 @@ class SettingsNav extends Menu // TRANS: %s is a username. sprintf(_('%s and friends'), $name), $this->action == 'all', 'nav_timeline_personal'); - $this->action->elementEnd('ul'); + $this->action->elementEnd('li'); $this->action->elementEnd('ul'); $this->action->elementStart('ul'); + $this->action->elementStart('li'); // TRANS: Header in settings navigation panel. $this->action->element('h3', null, _m('HEADER','Settings')); $this->action->elementStart('ul', array('class' => 'nav')); @@ -155,6 +157,7 @@ class SettingsNav extends Menu } $this->action->elementEnd('ul'); + $this->action->elementEnd('li'); $this->action->elementEnd('ul'); } } -- 2.39.5