From e40b54a4689f1565e0f76c536d0d4b05b23afc1e Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 7 Dec 2008 08:32:30 +0000 Subject: Adjust exception text to our normal form. --- core/libraries/ORM_MPTT.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core') 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); -- cgit v1.2.3