Permalink
Browse files

Fixing hard coded string

  • Loading branch information...
1 parent eedcf27 commit 5ceb953522f2923e62141ef6d5b1cf83d8c80a87 thepurpleblob committed May 4, 2007
Showing with 4 additions and 2 deletions.
  1. +4 −2 question/format.php
View
@@ -98,8 +98,10 @@ function setStoponerror( $stoponerror ) {
* 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 @@ function importprocess() {
}
}
if (!$answersvalid) {
- notify( get_string('matcherror','quiz') );
+ notify( get_string('matcherror','quiz') );
continue;
}
else {

0 comments on commit 5ceb953

Please sign in to comment.