MDL-30843 editor: Fixed up out of place if
authorSam Hemelryk <sam@moodle.com>
Tue, 10 Apr 2012 21:22:14 +0000 (09:22 +1200)
committerSam Hemelryk <sam@moodle.com>
Tue, 10 Apr 2012 21:22:14 +0000 (09:22 +1200)
lib/form/editor.php

index 991da8e..28e0eb4 100644 (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 '';
     }
-}
\ No newline at end of file
+}