From c825ec4ffb533fb3aca97e469290310da45075ae Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 15 Mar 2009 01:17:25 +0000 Subject: Move references to "album" out of ORM_MPTT since it's supposed to be implementation agnostic. --- core/libraries/ORM_MPTT.php | 8 -------- 1 file changed, 8 deletions(-) (limited to 'core/libraries') diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index f59aa084..18ca86a0 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -213,14 +213,6 @@ class ORM_MPTT_Core extends ORM { * @return ORM_MTPP */ function move_to($target) { - if (!$target->is_album()) { - throw new Exception("@todo INVALID_MOVE_TYPE $target->type"); - } - - if ($this->id == 1) { - throw new Exception("@todo INVALID_SOURCE root album"); - } - if ($this->left <= $target->left && $this->right >= $target->right) { throw new Exception("@todo INVALID_TARGET can't move item inside itself"); -- cgit v1.2.3