MDL-9123:

Added language string for error message
This commit is contained in:
thepurpleblob 2007-04-11 12:16:06 +00:00
parent 146b8728c7
commit 75b5701ae7
2 changed files with 2 additions and 1 deletions

View file

@ -251,6 +251,7 @@ $string['incorrect'] = 'Incorrect';
$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.';

View file

@ -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' );
}
}