diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-06 19:28:34 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-06 19:28:34 -0700 |
commit | 2f810ec12624eefa3eb47ad7174dbbe03936135d (patch) | |
tree | b292e7cf2d54f399413b0dff93a56d314df9d800 /modules | |
parent | 886b88fccf5de7fb3b17e1f3a2acd539268d1e8b (diff) |
Add "web_url" with the url to the web version of the item. Fixes ticket #1341.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gallery/models/item.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 1db766e9..34c22021 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -975,6 +975,8 @@ class Item_Model extends ORM_MPTT { } unset($data["album_cover_item_id"]); + $data["web_url"] = $this->abs_url(); + if (access::can("view_full", $this) && !$this->is_album()) { $data["file_url"] = rest::url("data", $this, "full"); } |