diff options
-rw-r--r-- | core/models/item.php | 8 |
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 { |