summaryrefslogtreecommitdiff
path: root/core/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-17 04:55:49 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-17 04:55:49 +0000
commit8630d61051d3fc2292cec35d098e239132870fa5 (patch)
treef015f3c58850131000daaa6a050b2a44779c7b7f /core/models
parentfc7b78492bc671f6dd78e04f5d42de958cdfb1d7 (diff)
Change the album thumbnail/resize from _album.jpg to .album.pjg
because the leading underscore confuses the Kohana router.
Diffstat (limited to 'core/models')
-rw-r--r--core/models/item.php8
1 files changed, 4 insertions, 4 deletions
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" : "");
}
/**