mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
35f2bc0a2f
commit
9274c1f234
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user