diff options
| author | jhilden <jakobhilden@gmail.com> | 2009-06-04 21:32:45 -0400 |
|---|---|---|
| committer | jhilden <jakobhilden@gmail.com> | 2009-06-04 21:32:45 -0400 |
| commit | 81d20c79b6c17a3c395d74da9aa995b24fd06810 (patch) | |
| tree | c722b6514e4adca2a8ac6efd285a1d89bcc66c82 /modules/gallery/helpers/gallery_menu.php | |
| parent | 8933a19f1fb56378c1be68bd82c91a577fece87d (diff) | |
| parent | 5158a6f4339ee85b928e6bd33a937a24f91f8bc2 (diff) | |
fixed another bug with the filesize unit and added a better error message
Merge branch 'master' of git@github.com:gallery/gallery3
Conflicts:
modules/gallery/views/simple_uploader.html.php
Diffstat (limited to 'modules/gallery/helpers/gallery_menu.php')
| -rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index d28e71c9..2a9e193b 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -30,14 +30,14 @@ class gallery_menu_Core { $can_edit = $item && access::can("edit", $item) || $is_admin; $can_add = $item && (access::can("add", $item) || $is_admin); - + if ($can_add) { $menu->append(Menu::factory("dialog") ->id("add_photos_item") ->label(t("Add photos")) ->url(url::site("simple_uploader/app/$item->id"))); } - + if ($item && $can_edit || $can_add) { $menu->append($options_menu = Menu::factory("submenu") ->id("options_menu") @@ -156,10 +156,6 @@ class gallery_menu_Core { ->append(Menu::factory("link") ->id("maintenance") ->label(t("Maintenance")) - ->url(url::site("admin/maintenance"))) - ->append(Menu::factory("submenu") - ->id("statistics_menu") - ->label(t("Statistics")) - ->url("#")); + ->url(url::site("admin/maintenance"))); } } |
