BUGFIX SSF-124 the $filterOn pass-as-reference variable name should be consist with where its value is altered so as the variable is correctly assigned

This commit is contained in:
Normann Lou 2012-04-11 12:16:23 +12:00
parent 3d0566638a
commit 6218aaef82

View File

@ -539,13 +539,13 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
}
/**
* Returns the files and subfolders contained in the currently selected folder,
* defaulting to the root node. Doubles as search results, if any search parameters
* are set through {@link SearchForm()}.
* Returns the pages meet a certain criteria as {@see CMSSiteTreeFilter} or the subpages of a parent page
* defaulting to no filter and show all pages in first level.
* Doubles as search results, if any search parameters are set through {@link SearchForm()}.
*
* @return SS_List
*/
public function getList(&$filterOnOff) {
public function getList(&$filterOn) {
$list = new DataList($this->stat('tree_class'));
$request = $this->request;