MDL-30843 editor: Fixed up out of place if

This commit is contained in:
Sam Hemelryk 2012-04-11 09:22:14 +12:00
parent 97d00c9f51
commit e19dc11e51

View File

@ -354,7 +354,7 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
$editorrules = ' onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"';
}
$str .= '<div><textarea id="'.$id.'" name="'.$elname.'[text]" rows="'.$rows.'" cols="'.$cols.'"'.$editorrules.'>';
$str .= s($text);if (count($formats)>1) {
$str .= s($text);
$str .= '</textarea></div>';
$str .= '<div>';
@ -408,4 +408,4 @@ class MoodleQuickForm_editor extends HTML_QuickForm_element {
return '';
}
}
}