summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-06 19:28:34 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-06 19:28:34 -0700
commit2f810ec12624eefa3eb47ad7174dbbe03936135d (patch)
treeb292e7cf2d54f399413b0dff93a56d314df9d800
parent886b88fccf5de7fb3b17e1f3a2acd539268d1e8b (diff)
Add "web_url" with the url to the web version of the item. Fixes ticket #1341.
-rw-r--r--modules/gallery/models/item.php2
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");
}