From db9b53d786e7598a198cfbe39be1d69d22a74dc6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 12 Jan 2009 03:38:01 +0000 Subject: [PATCH] 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 --- code/LeftAndMain.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 48927a5f..b5fadc99 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(null, $this); + $obj->markPartialTree(30, $this); if($p = $this->currentPage()) $obj->markToExpose($p); // getChildrenAsUL is a flexible and complex way of traversing the tree