Skip to content

Commit

Permalink
Merge branch 'wip-mdl-29539-m20' of git://github.com/rajeshtaneja/moo…
Browse files Browse the repository at this point in the history
…dle into MOODLE_20_STABLE
  • Loading branch information
Sam Hemelryk committed Oct 3, 2011
2 parents 98b723b + 87fccbc commit e93dd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/form/editor.php
Expand Up @@ -230,7 +230,7 @@ function toHtml() {
//Apply editor validation if required field //Apply editor validation if required field
$editorrules = ''; $editorrules = '';
if (!is_null($this->getAttribute('onblur')) && !is_null($this->getAttribute('onchange'))) { if (!is_null($this->getAttribute('onblur')) && !is_null($this->getAttribute('onchange'))) {
$editorrules = 'onblur="'.htmlspecialchars($this->getAttribute('onblur')).'" onchange="'.htmlspecialchars($this->getAttribute('onchange')).'"'; $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 .= '<div><textarea id="'.$id.'" name="'.$elname.'[text]" rows="'.$rows.'" cols="'.$cols.'"'.$editorrules.'>';
$str .= s($text); $str .= s($text);
Expand Down

0 comments on commit e93dd0d

Please sign in to comment.