mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-06-02 17:59:16 -04:00
Convert all item->type == "album" to item->is_album()
Convert all item->type == "photo" to item->is_photo()
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user