From cdeabc0638db35440fc6f8dc5155bdda348ad061 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Fri, 4 May 2007 14:31:56 +0000 Subject: [PATCH] Fixed hard coded string --- question/format.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/question/format.php b/question/format.php index cce13b5b110..49c07ecf9ed 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 {