mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-30 11:40:43 -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:
@@ -39,7 +39,7 @@ class Move_Controller extends Controller {
|
||||
// If the target has no cover item, make this it.
|
||||
if ($target->album_cover_item_id == null) {
|
||||
$target->album_cover_item_id =
|
||||
$source->type == "album" ? $source->album_cover_item_id : $source->id;
|
||||
$source->is_album() ? $source->album_cover_item_id : $source->id;
|
||||
$target->save();
|
||||
graphics::generate($target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user