From: Samantha Doherty Date: Wed, 18 May 2011 16:13:34 +0000 (-0400) Subject: Add missing li tags in settings and admin menus. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fbc5de32681985bcc2d22396e6af4789d624b39e;p=quix0rs-gnu-social.git Add missing li tags in settings and admin menus. --- 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'); } }