summaryrefslogtreecommitdiff
path: root/core/helpers/album.php
diff options
context:
space:
mode:
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);