MINOR Passing context object through in LeftAndMain->getSiteTreeFor() (necessary for Translatable)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69955 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-01-10 10:36:35 +00:00 committed by Sam Minnee
parent 35f2bc0a2f
commit 9274c1f234

View File

@ -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