summaryrefslogtreecommitdiff
path: root/core/controllers/quick.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/controllers/quick.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/controllers/quick.php')
-rw-r--r--core/controllers/quick.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/controllers/quick.php b/core/controllers/quick.php
index 6fd0ae62..77a39bf5 100644
--- a/core/controllers/quick.php
+++ b/core/controllers/quick.php
@@ -80,9 +80,9 @@ class Quick_Controller extends Controller {
$parent = $item->parent();
access::required("edit", $parent);
- if ($item->type == "photo") {
+ if ($item->is_photo()) {
$parent->album_cover_item_id = $item->id;
- } else if ($item->type == "album") {
+ } else if ($item->is_album()) {
$parent->album_cover_item_id = $item->album_cover_item_id;
}
@@ -100,7 +100,7 @@ class Quick_Controller extends Controller {
$parent = $item->parent();
- if ($item->type == "album") {
+ if ($item->is_album()) {
$msg = t("Deleted album <b>%title</b>", array("title" => $item->title));
} else {
$msg = t("Deleted photo <b>%title</b>", array("title" => $item->title));