From 6218aaef82825e9c63c6e273bf70b6561c9855ab Mon Sep 17 00:00:00 2001 From: Normann Lou Date: Wed, 11 Apr 2012 12:16:23 +1200 Subject: [PATCH] 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 --- code/controllers/CMSMain.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/controllers/CMSMain.php b/code/controllers/CMSMain.php index 69686284..7f2be8ab 100644 --- a/code/controllers/CMSMain.php +++ b/code/controllers/CMSMain.php @@ -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;