summaryrefslogtreecommitdiff
path: root/modules/gallery/libraries
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-09-10 10:53:23 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-09-10 10:53:23 -0700
commit0633bfb2af90e2c2c73443b7b9edc84f916990bb (patch)
tree3dae081f7f04860f6c7415773391d98f65b6fd82 /modules/gallery/libraries
parent7925d5e292c99520003a395035bfd20dc449ad6e (diff)
parent752c85711659eb7f83e6556665175266db8f24f5 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3 into talmdal_dev
Diffstat (limited to 'modules/gallery/libraries')
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index 9b3e1f2b..83d2445c 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -110,7 +110,7 @@ class ORM_MPTT_Core extends ORM {
* @param ORM $target
* @return boolean
*/
- function is_descendant($target) {
+ function contains($target) {
return ($this->left_ptr <= $target->left_ptr && $this->right_ptr >= $target->right_ptr);
}
@@ -212,7 +212,7 @@ class ORM_MPTT_Core extends ORM {
* @return ORM_MTPP
*/
function move_to($target) {
- if ($this->is_descendant($target)) {
+ if ($this->contains($target)) {
throw new Exception("@todo INVALID_TARGET can't move item inside itself");
}