]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed hard coded string
authorthepurpleblob <thepurpleblob>
Fri, 4 May 2007 14:31:56 +0000 (14:31 +0000)
committerthepurpleblob <thepurpleblob>
Fri, 4 May 2007 14:31:56 +0000 (14:31 +0000)
question/format.php

index cce13b5b11070b6e2ec78a6635ba9b17a1b175f9..49c07ecf9ede89a9364faab66bc6e2d1508f2230 100644 (file)
@@ -98,8 +98,10 @@ class qformat_default {
      * Handle parsing error
      */
     function error( $message, $text='', $questionname='' ) {
+        $importerrorquestion = get_string('importerrorquestion','quiz');
+
         echo "<div class=\"importerror\">\n";
-        echo "<strong>Error in question $questionname</strong>";
+        echo "<strong>$importerrorquestion $questionname</strong>";
         if (!empty($text)) {
             $text = s($text);
             echo "<blockquote>$text</blockquote>\n";
@@ -185,7 +187,7 @@ class qformat_default {
                     }
                 }
                 if (!$answersvalid) {
-                    notify( get_string('matcherror','quiz') );
+                    notify( get_string('matcherror','quiz') ); 
                     continue;
                 }
                 else {