Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-9123:

Added language string for error message
  • Loading branch information...
commit 75b5701ae7ab87a56a1dcb7f151b3dd5211cd159 1 parent 146b872
thepurpleblob authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  lang/en_utf8/quiz.php
  2. +1 −1  question/export.php
1  lang/en_utf8/quiz.php
View
@@ -251,6 +251,7 @@
$string['indivresp'] = 'Responses of Individuals to Each Item';
$string['info'] = 'Info';
$string['introduction'] = 'Introduction';
+$string['invalidcategory'] = 'Category ID is invalid';
$string['invalidnumericanswer'] = 'One of the answers you entered was not a valid number.';
$string['invalidnumerictolerance'] = 'One of the tolerances you entered was not a valid number.';
$string['invalidsource'] = 'The source is not accepted as valid.';
2  question/export.php
View
@@ -68,7 +68,7 @@
if (!empty($categoryid)) {
$validcats = question_category_options( $course->id, true, false );
if (!array_key_exists( $categoryid, $validcats)) {
- print_error( "Category id ($categoryid) is not permitted." );
+ print_error( 'invalidcategory','quiz' );
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.