mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-22 23:05:18 -04:00
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.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user