summaryrefslogtreecommitdiff
path: root/modules/gallery/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-02-19 11:54:03 -0800
committerBharat Mediratta <bharat@menalto.com>2010-02-19 11:54:03 -0800
commit5fbc472300ce6b19a2694a5f91b1fe0b2cc470f3 (patch)
treeb1aa01e8e59a2d1c1f56b51ed0ac3214187274e5 /modules/gallery/models
parentf062cc5e1acddfb1bf2b65a55ada7ab873c84aef (diff)
Fix the resize_url and file_url in as_restful_array()
Diffstat (limited to 'modules/gallery/models')
-rw-r--r--modules/gallery/models/item.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php
index d80e2bc4..d747b84d 100644
--- a/modules/gallery/models/item.php
+++ b/modules/gallery/models/item.php
@@ -931,10 +931,10 @@ class Item_Model extends ORM_MPTT {
unset($data["album_cover_item_id"]);
if (access::can("view_full", $this) && $this->is_photo()) {
- $data["file_url"] = $this->abs_url(true);
+ $data["file_url"] = $this->file_url(true);
}
- if ($tmp = $this->resize_url(true) && $this->is_photo()) {
+ if (($tmp = $this->resize_url(true)) && $this->is_photo()) {
$data["resize_url"] = $tmp;
}
$data["thumb_url"] = $this->thumb_url(true);