diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 06903653..48927a5f 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -455,7 +455,7 @@ class LeftAndMain extends Controller { function getSiteTreeFor($className, $rootID = null) { $obj = $rootID ? $this->getRecord($rootID) : singleton($className); - $obj->markPartialTree(); + $obj->markPartialTree(null, $this); if($p = $this->currentPage()) $obj->markToExpose($p); // getChildrenAsUL is a flexible and complex way of traversing the tree