diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/libraries/ORM_MPTT.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index d24679e0..c7cc5978 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -235,11 +235,11 @@ class ORM_MPTT_Core extends ORM { */ function move_to($target, $locked=false) { if ($target->type != "album") { - throw new Exception("@todo '{$target->type}' IS NOT A VALID MOVE TARGET"); + throw new Exception("@todo INVALID_MOVE_TYPE $target->type"); } if ($this->id == 1) { - throw new Exception("@todo '{$this->title}' IS NOT A VALID SOURCE"); + throw new Exception("@todo INVALID_SOURCE root album"); } $number_to_move = (int)(($this->right - $this->left) / 2 + 1); |