mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-29 19:20:52 -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:
@@ -204,7 +204,7 @@ class ORM_MPTT_Core extends ORM {
|
||||
* @return ORM_MTPP
|
||||
*/
|
||||
function move_to($target) {
|
||||
if ($target->type != "album") {
|
||||
if (!$target->is_album()) {
|
||||
throw new Exception("@todo INVALID_MOVE_TYPE $target->type");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user