mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX: Added page-limiting back to CMS tree querying
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@69986 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
508aa8a80b
commit
db9b53d786
@ -455,7 +455,7 @@ class LeftAndMain extends Controller {
|
||||
|
||||
function getSiteTreeFor($className, $rootID = null) {
|
||||
$obj = $rootID ? $this->getRecord($rootID) : singleton($className);
|
||||
$obj->markPartialTree(null, $this);
|
||||
$obj->markPartialTree(30, $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