summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-19 22:47:30 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-19 22:47:30 +0000
commit1b36ce6c7e334ac6b5510b50935cc389f80126be (patch)
treebd6ec749fda4127d14a2c661918abc1ca9995114
parent103bd8e8d22fed0cb2795ba28fe2e5acbfc4c744 (diff)
Fix broken path in url()
Fix some style issues
-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 298557e9..af8a81fa 100644
--- a/core/models/item.php
+++ b/core/models/item.php
@@ -53,8 +53,8 @@ class Item_Model extends ORM_MPTT {
* album: http://example.com/gallery3/var/resizes/album1/
* photo: http://example.com/gallery3/var/albums/album1/photo.jpg
*/
- public function url($index = FALSE, $protocol = FALSE) {
- return $this->_relative_path(url::base($index, $protocol) . "albums", "", "");
+ public function url($index=false, $protocol=false) {
+ return $this->_relative_path(url::base($index, $protocol) . "var/albums", "", "");
}
/**
@@ -73,7 +73,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 thumbnail_url($index = FALSE, $protocol = FALSE) {
+ public function thumbnail_url($index=false, $protocol=false) {
if ($this->is_album()) {
return $this->_relative_path(url::base($index, $protocol) . "var/resizes", "", "/.thumb.jpg");
} else {
@@ -97,7 +97,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($index = FALSE, $protocol = FALSE) {
+ public function resize_url($index=false, $protocol=false) {
if ($this->is_album()) {
return $this->_relative_path(url::base($index, $protocol) . "var/resizes", "", "/.resize.jpg");
} else {