From e81b978ecfe7b2c19faf31d3861890629b42c66e Mon Sep 17 00:00:00 2001 From: Mateusz Uzdowski Date: Thu, 14 Jan 2010 22:02:44 +0000 Subject: [PATCH] BUGFIX: loading a subtree was failing - couldn't call getSiteTreeFor reliably on LeftAndMain which is abstract class in its nature. Now using valid subclass instead. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@96961 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSSiteTreeFilter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/CMSSiteTreeFilter.php b/code/CMSSiteTreeFilter.php index d77bcc7b..73e793c6 100644 --- a/code/CMSSiteTreeFilter.php +++ b/code/CMSSiteTreeFilter.php @@ -27,7 +27,7 @@ abstract class CMSSiteTreeFilter extends Object { $this->populateIDs(); } - $leftAndMain = new LeftAndMain(); + $leftAndMain = new CMSMain(); $tree = $leftAndMain->getSiteTreeFor('SiteTree', isset($_REQUEST['ID']) ? $_REQUEST['ID'] : 0, null, null, array($this, 'includeInTree')); // Trim off the outer tag