diff options
| author | Tim Almdal <tnalmdal@shaw.ca> | 2009-06-18 04:34:18 +0800 |
|---|---|---|
| committer | <unostar@danalan.info> | 2009-06-18 16:29:43 +0800 |
| commit | a179d6bdf87dc654d7afc903b48def3562a73af0 (patch) | |
| tree | ec46f6839175e5df60a85b795862535ec3d416f1 /modules/gallery/libraries/Theme_View.php | |
| parent | 9af8027cf30e346b8cf42ade14efee39a8221b0d (diff) | |
Correct the "inappropriate intimacy" smell that bharat's refined senses pick up
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules/gallery/libraries/Theme_View.php')
| -rw-r--r-- | modules/gallery/libraries/Theme_View.php | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/modules/gallery/libraries/Theme_View.php b/modules/gallery/libraries/Theme_View.php index 904a3c07..7b2ca840 100644 --- a/modules/gallery/libraries/Theme_View.php +++ b/modules/gallery/libraries/Theme_View.php @@ -103,25 +103,12 @@ class Theme_View_Core extends View { call_user_func_array(array($class, "site"), array(&$menu, $this)); } } - - $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); - } - } - } - } - public function album_menu() { $this->_menu("album"); } |
