summaryrefslogtreecommitdiff
path: root/modules/digibug/helpers
diff options
context:
space:
mode:
authorChad Kieffer <ckieffer@gmail.com>2009-06-24 23:40:57 -0600
committerChad Kieffer <ckieffer@gmail.com>2009-06-24 23:40:57 -0600
commitf70517a8e88b280c2b380f2bde7ff9d85146506f (patch)
treea8e86434282eab242009e9cda145c5b5764a39d5 /modules/digibug/helpers
parent043469587ed03a2a4e05aa2fddcebe53f04b0ce4 (diff)
parent766de009090cd1a49b6726e79bce7a69392491be (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/digibug/helpers')
-rw-r--r--modules/digibug/helpers/digibug_menu.php18
1 files changed, 7 insertions, 11 deletions
diff --git a/modules/digibug/helpers/digibug_menu.php b/modules/digibug/helpers/digibug_menu.php
index 1ff0f6bf..6c466031 100644
--- a/modules/digibug/helpers/digibug_menu.php
+++ b/modules/digibug/helpers/digibug_menu.php
@@ -27,17 +27,13 @@ class digibug_menu {
}
static function photo($menu, $theme) {
- }
-
- static function site($menu, $theme) {
$item = $theme->item();
-
- if ($item && access::can("edit", $item)) {
- $options_menu = $menu->get("options_menu")
- ->append(Menu::factory("dialog")
- ->id("digibug")
- ->label(t("Peform Digibug Processing"))
- ->url(url::site("digibug/index/$item->id")));
- }
+ $csrf = access::csrf_token();
+ $menu
+ ->append(Menu::factory("link")
+ ->id("digibug")
+ ->label(t("Print with Digibug"))
+ ->url(url::site("digibug/print_photo/{$item->id}?csrf={$csrf}"))
+ ->css_id("gDigibugLink"));
}
}