Skip to content
Browse files

Fixed bug with using _loaded(), which has been depreciated in the lat…

…est sprig versions.
  • Loading branch information...
1 parent 780c791 commit a87f30b5d934c167a06879512e0bd99d9395bdb5 Oliver Morgan committed Jan 11, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 classes/sprig/mptt.php
View
8 classes/sprig/mptt.php
@@ -236,11 +236,11 @@ public function is_root()
*/
public function root($scope = NULL)
{
- if ($scope === NULL AND $this->_loaded)
+ if ($scope === NULL AND $this->loaded())
{
$scope = $this->{$this->scope_column};
}
- elseif ($scope === NULL AND ! $this->_loaded)
+ elseif ($scope === NULL AND ! $this->loaded())
{
return FALSE;
}
@@ -496,7 +496,7 @@ public function insert_as_new_root($scope = 1)
protected function insert($target, $copy_left_from, $left_offset, $level_offset)
{
// Insert should only work on new nodes.. if its already it the tree it needs to be moved!
- if ($this->_loaded)
+ if ($this->loaded())
return FALSE;
@@ -918,7 +918,7 @@ public function verify_scope($scope)
*/
public function reload()
{
- if ( ! $this->_loaded)
+ if ( ! $this->loaded())
{
return FALSE;
}

1 comment on commit a87f30b

@banks
Owner
banks commented on a87f30b Jan 12, 2010

Thanks Olly

Please sign in to comment.
Something went wrong with that request. Please try again.