diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-06-17 08:57:24 +0800 |
---|---|---|
committer | <unostar@danalan.info> | 2009-06-17 13:51:21 +0800 |
commit | 15f3d58b0275c1e59d380730e01c061747e95067 (patch) | |
tree | 4cbf89154503d2a3202ce98d3f2219673bd56e54 /modules | |
parent | 8af66822e203c8546a293f9c31a3836fb89c97df (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.
Signed-off-by: <unostar@danalan.info>
Diffstat (limited to 'modules')
-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")); } } |