mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Refer to setColumns in deprecation message instead of non-existent setCols
This commit is contained in:
parent
8171b68292
commit
6ab04a6a55
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user