From 80d4df3a4a6fefcf69de5245934b4b0bfc0f8e20 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 6 Feb 2009 03:47:36 +0000 Subject: Convert all item->type == "album" to item->is_album() Convert all item->type == "photo" to item->is_photo() --- core/helpers/graphics.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/helpers/graphics.php') 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(); } -- cgit v1.2.3