diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-17 13:34:18 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-17 13:34:18 -0700 |
commit | a6a9b256ae7ac686ed1f53c05275ae702fb37aad (patch) | |
tree | 1e47dbd3939c83d5e582debc9a9e4be0f2a0ecdc /modules/gallery/libraries/Admin_View.php | |
parent | 5b767b6443011031190ce2d7580dca2d6dc33e19 (diff) |
Correct the "inappropriate intimacy" smell that bharat's refined senses pick up
Diffstat (limited to 'modules/gallery/libraries/Admin_View.php')
-rw-r--r-- | modules/gallery/libraries/Admin_View.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php index 11a96d75..7a7396eb 100644 --- a/modules/gallery/libraries/Admin_View.php +++ b/modules/gallery/libraries/Admin_View.php @@ -69,23 +69,10 @@ class Admin_View_Core extends View { } } - $this->_remove_empty_items($menu); + $menu->compact(); print $menu; } - private function _remove_empty_items($menu) { - foreach ($menu->elements as $target_id => $element) { - if ($element->type == "submenu") { - if (empty($element->elements)) { - $menu->remove($target_id); - } else { - $this->_remove_empty_items($element); - } - } - } - } - - /** * Print out any site wide status information. */ |