Convert all item->type == "album" to item->is_album()

Convert all item->type == "photo" to item->is_photo()
This commit is contained in:
Tim Almdal
2009-02-06 03:47:36 +00:00
parent 196ef392ab
commit 80d4df3a4a
12 changed files with 21 additions and 21 deletions

View File

@@ -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));