diff options
Diffstat (limited to 'core/helpers/graphics.php')
-rw-r--r-- | core/helpers/graphics.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/graphics.php b/core/helpers/graphics.php index cd112e1b..4c8f3bb1 100644 --- a/core/helpers/graphics.php +++ b/core/helpers/graphics.php @@ -68,7 +68,7 @@ class graphics_Core { * @param Item_Model $item */ static function generate($item) { - if ($item->type == "album") { + if ($item->is_album()) { $cover = $item->album_cover(); if (!$cover) { return; @@ -82,7 +82,7 @@ class graphics_Core { if ($item->thumb_dirty) { $ops["thumb"] = $item->thumb_path(); } - if ($item->resize_dirty && $item->type != "album") { + if ($item->resize_dirty && !$item->is_album()) { $ops["resize"] = $item->resize_path(); } |