]> git.mjollnir.org Git - moodle.git/commitdiff
fixed typo and s()
authorskodak <skodak>
Sat, 22 Apr 2006 16:36:35 +0000 (16:36 +0000)
committerskodak <skodak>
Sat, 22 Apr 2006 16:36:35 +0000 (16:36 +0000)
lib/editorlib.php

index ea27966705710aff9aeeb2e334ccfcb0c950a19a..439792b6a48b9da8a2725c6796e67eba75b389db 100644 (file)
@@ -116,10 +116,10 @@ class editorObject {
     *
     * @param string $message
     */
-    function error($messsage) {
+    function error($message) {
         echo '<div style="text-align: center; font-weight: bold; color: red;">';
         echo '<span style="color: black;">editorObject error:</span> ';
-        echo stripslashes(htmlentities($message));
+        echo s($message, true);
         echo '</div>';
         exit;
     }