diff --git a/core/model/Hierarchy.php b/core/model/Hierarchy.php index 683f8b767..44ab47cff 100644 --- a/core/model/Hierarchy.php +++ b/core/model/Hierarchy.php @@ -69,13 +69,13 @@ class Hierarchy extends DataObjectDecorator { * @param int $minCount The minimum amount of nodes to mark. * @return int The actual number of nodes marked. */ - public function markPartialTree($minCount = 30) { + public function markPartialTree($minCount = 30, $context = null) { $this->markedNodes = array($this->owner->ID => $this->owner); $this->owner->markUnexpanded(); // foreach can't handle an ever-growing $nodes list while(list($id, $node) = each($this->markedNodes)) { - $this->markChildren($node); + $this->markChildren($node, $context); if($minCount && sizeof($this->markedNodes) >= $minCount) { break;