diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:23:22 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-07 08:23:22 +0000 |
commit | 055aa044977fdb608547bca2f39b79abe31beabe (patch) | |
tree | be62c491226b3c8e0617b082310ab9834b16392d /core/libraries | |
parent | d086f31ea4f877b9497f8d4933edd9352ba04b1a (diff) |
Rename moveTo to move_to and extend the test a bit.
Diffstat (limited to 'core/libraries')
-rw-r--r-- | core/libraries/ORM_MPTT.php | 6 |
1 files changed, 3 insertions, 3 deletions
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; |