From 9274c1f2347d385f0713b10ddb0345eeda04f811 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 10 Jan 2009 10:36:35 +0000 Subject: [PATCH] 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 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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