mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Unnecessary check of trim() twice on TextareaField->Field()
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64557 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
62a28cab64
commit
fda6ab0afb
@ -38,8 +38,9 @@ class TextareaField extends FormField {
|
||||
if($this->readonly) {
|
||||
$attributes = array(
|
||||
'id' => $this->id(),
|
||||
'class' => 'readonly' . (trim($this->extraClass()) ? (' ' . trim($this->extraClass())) : ''),
|
||||
'class' => 'readonly' . (trim($this->extraClass()) ? (' ' . $this->extraClass()) : ''),
|
||||
'name' => $this->name,
|
||||
'tabindex' => $this->getTabIndex(),
|
||||
'readonly' => 'readonly'
|
||||
);
|
||||
|
||||
@ -47,7 +48,7 @@ class TextareaField extends FormField {
|
||||
} else {
|
||||
$attributes = array(
|
||||
'id' => $this->id(),
|
||||
'class' => (trim($this->extraClass()) ? trim($this->extraClass()) : ''),
|
||||
'class' => (trim($this->extraClass()) ? $this->extraClass() : ''),
|
||||
'name' => $this->name,
|
||||
'rows' => $this->rows,
|
||||
'cols' => $this->cols
|
||||
|
Loading…
x
Reference in New Issue
Block a user