From fc7b78492bc671f6dd78e04f5d42de958cdfb1d7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 17 Dec 2008 04:45:35 +0000 Subject: 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).. --- core/helpers/album.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/helpers/album.php') 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); -- cgit v1.2.3