summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2010-02-15 12:29:49 -0800
committerTim Almdal <tnalmdal@shaw.ca>2010-02-15 12:29:49 -0800
commita597b57210b48241781f31d3f277e274d3ca6874 (patch)
tree2092507929b8a2391cca015c216ae7e82e937c2a /modules
parent409121942590e12692eaf4e6e9e8b71bfe5ed60c (diff)
return the absolute url not the relative for the full size, resize and thumb images.
Diffstat (limited to 'modules')
-rw-r--r--modules/gallery/models/item.php6
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",