From 055aa044977fdb608547bca2f39b79abe31beabe Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 7 Dec 2008 08:23:22 +0000 Subject: Rename moveTo to move_to and extend the test a bit. --- core/libraries/ORM_MPTT.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/libraries') diff --git a/core/libraries/ORM_MPTT.php b/core/libraries/ORM_MPTT.php index f30b6cc5..b6353cec 100644 --- a/core/libraries/ORM_MPTT.php +++ b/core/libraries/ORM_MPTT.php @@ -233,7 +233,7 @@ class ORM_MPTT_Core extends ORM { * @param boolean $locked The called is already holding the lock * @return ORM_MTPP */ - function moveTo($target, $locked=false) { + function move_to($target, $locked=false) { if ($target->type != "album") { throw new Exception("@todo '{$target->type}' IS NOT A VALID MOVE TARGET"); } @@ -242,8 +242,8 @@ class ORM_MPTT_Core extends ORM { throw new Exception("@todo '{$this->title}' IS NOT A VALID SOURCE"); } - $numberToMove = (int)(($this->right - $this->left) / 2 + 1); - $size_of_hole = $numberToMove * 2; + $number_to_move = (int)(($this->right - $this->left) / 2 + 1); + $size_of_hole = $number_to_move * 2; $original_parent = $this->parent; $original_left = $this->left; $original_right = $this->right; -- cgit v1.2.3