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:
Sean Harvey 2008-10-20 10:54:04 +00:00
parent 62a28cab64
commit fda6ab0afb

View File

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