From 9b29b09a24d12d53262949a0e7d9af379d2f7975 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 15 Sep 2007 00:46:51 +0000 Subject: [PATCH] elofgren: VAR FIX: Fix typo in LeftAndMain::addTreeNodeJS() by renaming 'select' parameter to 'selected' because 'selected' is what is used in the method body. (merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41843 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 cc71032e..c697dca2 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -510,7 +510,7 @@ JS; /** * Return JavaScript code to generate a tree node for the given page, if visible */ - public function addTreeNodeJS($page, $select = false) { + public function addTreeNodeJS($page, $selected = false) { $parentID = (int)$page->ParentID; $title = Convert::raw2js($page->TreeTitle()); $response = <<