diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-15 12:29:49 -0800 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2010-02-15 12:29:49 -0800 |
commit | a597b57210b48241781f31d3f277e274d3ca6874 (patch) | |
tree | 2092507929b8a2391cca015c216ae7e82e937c2a | |
parent | 409121942590e12692eaf4e6e9e8b71bfe5ed60c (diff) |
return the absolute url not the relative for the full size, resize and thumb images.
-rw-r--r-- | modules/gallery/models/item.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index 283654c7..a64bcb49 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -931,13 +931,13 @@ class Item_Model extends ORM_MPTT { unset($data["album_cover_item_id"]); if (access::can("view_fillsize", $this) && $this->is_photo()) { - $data["fullsize_url"] = $this->abs_url(); + $data["fullsize_url"] = $this->abs_url(true); } - if ($tmp = $this->resize_url() && $this->is_photo()) { + if ($tmp = $this->resize_url(true) && $this->is_photo()) { $data["resize_url"] = $tmp; } - $data["thumb_url"] = $this->thumb_url(); + $data["thumb_url"] = $this->thumb_url(true); // Elide some internal-only data that is going to cause confusion in the client. foreach (array("relative_path_cache", "relative_url_cache", "left_ptr", "right_ptr", |