mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-07 12:09:11 -04:00
* Remove the @todo in module event and always try to call gallery_event::$function first
* Refactor gallery.php to move site_menu, admin_menu, and context_menu to gallery_event.php
* Change Theme_View and Admin_view to call module::event("site_menu|admin_menu|context_menu"...)
This commit is contained in:
@@ -80,7 +80,6 @@ class Theme_View_Core extends Gallery_View {
|
||||
|
||||
public function site_menu() {
|
||||
$menu = Menu::factory("root");
|
||||
gallery::site_menu($menu, $this);
|
||||
module::event("site_menu", $menu, $this);
|
||||
return $menu->compact();
|
||||
}
|
||||
@@ -124,7 +123,6 @@ class Theme_View_Core extends Gallery_View {
|
||||
->label(t("Options")))
|
||||
->css_class("gContextMenu");
|
||||
|
||||
gallery::context_menu($menu, $this, $item, $thumbnail_css_selector);
|
||||
module::event("context_menu", $menu, $this, $item, $thumbnail_css_selector);
|
||||
return $menu->compact();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user