diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2009-03-14 18:31:56 +0000 | 
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2009-03-14 18:31:56 +0000 | 
| commit | e658b9895edb8ce5b0c8c74f32f579c373d37e3b (patch) | |
| tree | df0f11c0868d1366e127d02ed3adab454748edeb /core/models/item.php | |
| parent | a3c513b78641850293bedc9b6f4d8f9f426350c1 (diff) | |
Default thumb/resizes to relative urls.
Diffstat (limited to 'core/models/item.php')
| -rw-r--r-- | core/models/item.php | 4 | 
1 files changed, 2 insertions, 2 deletions
| 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())) . | 
