diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index 61fd065a1..95f42036f 100644 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -46,7 +46,7 @@ class HtmlEditorField extends TextareaField { * @see TextareaField::__construct() */ public function __construct($name, $title = null, $value = '') { - if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRows() and setCols() instead of constructor arguments', Deprecation::SCOPE_GLOBAL); + if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRows() and setColumns() instead of constructor arguments', Deprecation::SCOPE_GLOBAL); parent::__construct($name, $title, $value); diff --git a/forms/TextareaField.php b/forms/TextareaField.php index bf2934361..1f355200c 100644 --- a/forms/TextareaField.php +++ b/forms/TextareaField.php @@ -40,7 +40,7 @@ class TextareaField extends FormField { * @param $value The current value */ function __construct($name, $title = null, $value = '') { - if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRows() and setCols() instead of constructor arguments'); + if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setRows() and setColumns() instead of constructor arguments'); parent::__construct($name, $title, $value); } @@ -72,7 +72,7 @@ class TextareaField extends FormField { } function Type() { - return parent::Type() . ($this->readonly ? ' readonly' : ''); + return parent::Type() . ($this->readonly ? ' readonly' : ''); } /**