summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-20 23:47:48 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-20 23:47:48 -0800
commite2b6cfc2d9a0c0a5c6cf3c530b2a22d763b76970 (patch)
tree74543a7835fda43bd5ebb8605e85f08c4bc478c0
parent46d4d778ad9febf175380cd82e0a10da33293d36 (diff)
Make move_to protected since we don't want folks calling it on
Item_Model. If there's a need to make this public, we should override it in Item_Model and throw an exception there.
-rw-r--r--modules/gallery/libraries/ORM_MPTT.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/libraries/ORM_MPTT.php b/modules/gallery/libraries/ORM_MPTT.php
index ba61131a..a7bb24ea 100644
--- a/modules/gallery/libraries/ORM_MPTT.php
+++ b/modules/gallery/libraries/ORM_MPTT.php
@@ -227,7 +227,7 @@ class ORM_MPTT_Core extends ORM {
* @param Item_Model $target Target node
* @return ORM_MTPP
*/
- function move_to($target) {
+ protected function move_to($target) {
if ($this->contains($target)) {
throw new Exception("@todo INVALID_TARGET can't move item inside itself");
}