summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries/Admin_View.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-10-27 13:46:24 -0700
committerBharat Mediratta <bharat@menalto.com>2009-10-27 13:48:41 -0700
commit76c0c7f3a1246319242e8fff7649c1450da0f98e (patch)
treeb34a559996a5bed898bff3e6006fe377c58889a4 /modules/gallery/libraries/Admin_View.php
parentab1d21eb34cfca46383ef10b66c49616beb6af15 (diff)
Change our menu building blocks to use PHP templates so that themes
can override them and define their own menu formats. I worry a little bit that this approach may be too heavy since we're now doing a lot more template includes than we were before. Also, I had to change the Menu API to stop using __toString() because you can't throw exceptions from __toString() which would make it an unhappy experience for developers.
Diffstat (limited to 'modules/gallery/libraries/Admin_View.php')
-rw-r--r--modules/gallery/libraries/Admin_View.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gallery/libraries/Admin_View.php b/modules/gallery/libraries/Admin_View.php
index 6eedec0d..4cbefbbd 100644
--- a/modules/gallery/libraries/Admin_View.php
+++ b/modules/gallery/libraries/Admin_View.php
@@ -47,8 +47,7 @@ class Admin_View_Core extends Gallery_View {
public function admin_menu() {
$menu = Menu::factory("root");
module::event("admin_menu", $menu, $this);
- $menu->compact();
- return $menu;
+ return $menu->compact()->render();
}
/**