diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-16 17:57:24 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-06-16 17:57:24 -0700 |
commit | f6e8f34bef322e087be46274d6cc42490fd22ce3 (patch) | |
tree | ebfdf7d1c9354f96883e5cfe2412d518b4ade959 /modules/gallery/helpers | |
parent | 51b9873041f1a2161272ad4a3250d52a334024ef (diff) |
Add the real image url to the anchor elements for our full size links
so that right clicking works.
Turn the full size rendering code into a function and call it with
arguments, instead of creating a hacky named data structure to hold
the info.
Further partial fixes for ticket #427.
Diffstat (limited to 'modules/gallery/helpers')
-rw-r--r-- | modules/gallery/helpers/gallery_menu.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/gallery/helpers/gallery_menu.php b/modules/gallery/helpers/gallery_menu.php index 4499e50a..fb0234b1 100644 --- a/modules/gallery/helpers/gallery_menu.php +++ b/modules/gallery/helpers/gallery_menu.php @@ -96,12 +96,11 @@ class gallery_menu_Core { static function photo($menu, $theme) { if (access::can("view_full", $theme->item())) { - $menu - ->append(Menu::factory("link") - ->id("fullsize") - ->label(t("View full size")) - ->url("#") - ->css_class("gFullSizeLink")); + $menu->append(Menu::factory("link") + ->id("fullsize") + ->label(t("View full size")) + ->url($theme->item()->file_url()) + ->css_class("gFullSizeLink")); } } |