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
This commit is contained in:
Mateusz Uzdowski 2010-01-14 22:02:44 +00:00 committed by Sam Minnee
parent 8b082d3bed
commit e81b978ecf

View File

@ -27,7 +27,7 @@ abstract class CMSSiteTreeFilter extends Object {
$this->populateIDs(); $this->populateIDs();
} }
$leftAndMain = new LeftAndMain(); $leftAndMain = new CMSMain();
$tree = $leftAndMain->getSiteTreeFor('SiteTree', isset($_REQUEST['ID']) ? $_REQUEST['ID'] : 0, null, null, array($this, 'includeInTree')); $tree = $leftAndMain->getSiteTreeFor('SiteTree', isset($_REQUEST['ID']) ? $_REQUEST['ID'] : 0, null, null, array($this, 'includeInTree'));
// Trim off the outer tag // Trim off the outer tag