summaryrefslogtreecommitdiff
path: root/core/helpers/graphics.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-02-06 03:47:36 +0000
committerTim Almdal <tnalmdal@shaw.ca>2009-02-06 03:47:36 +0000
commit80d4df3a4a6fefcf69de5245934b4b0bfc0f8e20 (patch)
tree7035bf37330fabce2996f6a867c77ea00295b216 /core/helpers/graphics.php
parent196ef392ab1dc32154ec8dbe49340d4aefb0d082 (diff)
Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
Diffstat (limited to 'core/helpers/graphics.php')
-rw-r--r--core/helpers/graphics.php4
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();
}