From: thepurpleblob Date: Fri, 4 May 2007 14:31:56 +0000 (+0000) Subject: Fixed hard coded string X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=cdeabc0638db35440fc6f8dc5155bdda348ad061;p=moodle.git Fixed hard coded string --- diff --git a/question/format.php b/question/format.php index cce13b5b11..49c07ecf9e 100644 --- a/question/format.php +++ b/question/format.php @@ -98,8 +98,10 @@ class qformat_default { * Handle parsing error */ function error( $message, $text='', $questionname='' ) { + $importerrorquestion = get_string('importerrorquestion','quiz'); + echo "
\n"; - echo "Error in question $questionname"; + echo "$importerrorquestion $questionname"; if (!empty($text)) { $text = s($text); echo "
$text
\n"; @@ -185,7 +187,7 @@ class qformat_default { } } if (!$answersvalid) { - notify( get_string('matcherror','quiz') ); + notify( get_string('matcherror','quiz') ); continue; } else {