diff options
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.     */ | 
