From e658b9895edb8ce5b0c8c74f32f579c373d37e3b Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 14 Mar 2009 18:31:56 +0000 Subject: Default thumb/resizes to relative urls. --- core/models/item.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/models/item.php b/core/models/item.php index bab83aca..219beae3 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -192,7 +192,7 @@ class Item_Model extends ORM_MPTT { * album: http://example.com/gallery3/var/resizes/album1/.thumb.jpg * photo: http://example.com/gallery3/var/albums/album1/photo.thumb.jpg */ - public function thumb_url($full_uri=true) { + public function thumb_url($full_uri=false) { $base = ($full_uri ? url::abs_file("var/thumbs/" . $this->relative_path()) : url::file("var/thumbs/" . $this->relative_path())); @@ -219,7 +219,7 @@ class Item_Model extends ORM_MPTT { * album: http://example.com/gallery3/var/resizes/album1/.resize.jpg * photo: http://example.com/gallery3/var/albums/album1/photo.resize.jpg */ - public function resize_url($full_uri=true) { + public function resize_url($full_uri=false) { return ($full_uri ? url::abs_file("var/resizes/" . $this->relative_path()) : url::file("var/resizes/" . $this->relative_path())) . -- cgit v1.2.3