MINOR Changed $title parameter to HtmlEditorField constructor to null to be consistent with TextareaField and so title is derived based on the name of the field if no title is given.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@70647 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-01-23 00:27:12 +00:00 committed by Sam Minnee
parent c6a6c3d25c
commit 7f9e91d2b5

View File

@ -15,7 +15,7 @@ class HtmlEditorField extends TextareaField {
/** /**
* Construct a new HtmlEditor field * Construct a new HtmlEditor field
*/ */
function __construct($name, $title = "", $rows = 20, $cols = 20, $value = "", $form = null) { function __construct($name, $title = null, $rows = 20, $cols = 20, $value = "", $form = null) {
parent::__construct($name, $title, $rows, $cols, $value, $form); parent::__construct($name, $title, $rows, $cols, $value, $form);
$this->extraClass = 'typography'; $this->extraClass = 'typography';
} }