Refer to setColumns in deprecation message instead of non-existent setCols

This commit is contained in:
Sean Harvey 2012-09-18 09:38:18 +12:00
parent 8171b68292
commit 6ab04a6a55
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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' : '');
}
/**