From 2d82a2ff35af80ba35f37710b3fb385f62e3591c Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:20:36 +0000 Subject: [PATCH] MINOR Syntax error and documentation git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92839 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/CMSMain.php | 2 +- code/LeftAndMain.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/code/CMSMain.php b/code/CMSMain.php index 1ca0ef74..dd27e1ec 100755 --- a/code/CMSMain.php +++ b/code/CMSMain.php @@ -329,7 +329,7 @@ JS; $fields->push($idField = new HiddenField("ID", false, $id)); $fields->push($liveURLField = new HiddenField("LiveURLSegment")); $fields->push($stageURLField = new HiddenField("StageURLSegment")); - $fields->push($stageURLField = new HiddenField("TreeTitle", false, $record->TreeTitle)); + $fields->push(new HiddenField("TreeTitle", false, $record->TreeTitle)); $fields->push(new HiddenField('Sort','', $record->Sort)); diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index ce7c890b..531e647c 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -30,6 +30,11 @@ class LeftAndMain extends Controller { static $url_priority = 50; + /** + * @var string A subclass of {@link DataObject}. + * Determines what is managed in this interface, + * through {@link getEditForm()} and other logic. + */ static $tree_class = null; static $allowed_actions = array(