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
This commit is contained in:
Ingo Schommer 2007-09-15 00:46:51 +00:00
parent dfa6b99f18
commit 9b29b09a24

View File

@ -510,7 +510,7 @@ JS;
/** /**
* Return JavaScript code to generate a tree node for the given page, if visible * 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; $parentID = (int)$page->ParentID;
$title = Convert::raw2js($page->TreeTitle()); $title = Convert::raw2js($page->TreeTitle());
$response = <<<JS $response = <<<JS