summaryrefslogtreecommitdiff
path: root/core/helpers/album.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-12-17 04:45:35 +0000
committerBharat Mediratta <bharat@menalto.com>2008-12-17 04:45:35 +0000
commitfc7b78492bc671f6dd78e04f5d42de958cdfb1d7 (patch)
tree9ee1738b0869cd183f688180eedc144bb4fa385a /core/helpers/album.php
parentf8a0c91ce689c5e0ae7bf05cc75b9982a3b26baf (diff)
Separate thumbnails out into var/thumbs. This clears up some ambiguity in Item_Model and simplifies
file_proxy. It also means we can stop munging file names in the var/resizes hierarchy. In the process, rename "thumbnail" to "thumb" everywhere in honor of Chad (well, ok because it's shorter)..
Diffstat (limited to 'core/helpers/album.php')
-rw-r--r--core/helpers/album.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/helpers/album.php b/core/helpers/album.php
index 9373c5d5..faf0fd98 100644
--- a/core/helpers/album.php
+++ b/core/helpers/album.php
@@ -54,10 +54,8 @@ class album_Core {
$album = $album->add_to_parent($parent);
mkdir($album->file_path());
- $thumbnail_dir = dirname($album->thumbnail_path());
- if (!file_exists($thumbnail_dir)) {
- mkdir($thumbnail_dir);
- }
+ mkdir(dirname($album->thumb_path()));
+ mkdir(dirname($album->resize_path()));
module::event("album_created", $album);