diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:32:30 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:32:30 +0000 |
commit | e40b54a4689f1565e0f76c536d0d4b05b23afc1e (patch) | |
tree | 065e9d628d1ba8f3c7dce6461ef1f34fd00b46a1 | |
parent | c9cc6ffd1a1df704ca31e270329899277a4a7c51 (diff) |
Adjust exception text to our normal form.
-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); |