]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9123:
authorthepurpleblob <thepurpleblob>
Wed, 11 Apr 2007 12:18:28 +0000 (12:18 +0000)
committerthepurpleblob <thepurpleblob>
Wed, 11 Apr 2007 12:18:28 +0000 (12:18 +0000)
Added language string for error message

lang/en_utf8/quiz.php
question/export.php

index 365120897fc96b74ffa420952cc48ebab2849a0b..d0469f111afc28889b74a99e6213d79a2b745808 100644 (file)
@@ -252,6 +252,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.';
index fe8401032a9358110ac0cd9c6651bf93b5056fa7..6c0d19ae981f776ae18c1ad00386a1555e3de8ae 100644 (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' );
         }
     }