From 8630d61051d3fc2292cec35d098e239132870fa5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 17 Dec 2008 04:55:49 +0000 Subject: Change the album thumbnail/resize from _album.jpg to .album.pjg because the leading underscore confuses the Kohana router. --- core/models/item.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index 9ab230b7..64af79ce 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -102,7 +102,7 @@ class Item_Model extends ORM_MPTT { */ public function thumb_path() { return VARPATH . "thumbs/" . $this->_relative_path() . - ($this->type == "album" ? "/_album.jpg" : ""); + ($this->type == "album" ? "/.album.jpg" : ""); } /** @@ -113,7 +113,7 @@ class Item_Model extends ORM_MPTT { return ($full_uri ? url::abs_file("var/thumbs/" . $this->_relative_path()) : url::file("var/thumbs/" . $this->_relative_path())) . - ($this->type == "album" ? "/_album.jpg" : ""); + ($this->type == "album" ? "/.album.jpg" : ""); } /** @@ -122,7 +122,7 @@ class Item_Model extends ORM_MPTT { */ public function resize_path() { return VARPATH . "resizes/" . $this->_relative_path() . - ($this->type == "album" ? "/_album.jpg" : ""); + ($this->type == "album" ? "/.album.jpg" : ""); } /** @@ -133,7 +133,7 @@ class Item_Model extends ORM_MPTT { return ($full_uri ? url::abs_file("var/resizes/" . $this->_relative_path()) : url::file("var/resizes/" . $this->_relative_path())) . - ($this->type == "album" ? "/_album.jpg" : ""); + ($this->type == "album" ? "/.album.jpg" : ""); } /** -- cgit v1.2.3