Permalink
Browse files

MDL-32191 grade:renamed a mis-spelled string name

AMOS BEGIN
 CPY [invalidgradeitmeid,error],[invalidgradeitemid,error]
AMOS END
  • Loading branch information...
1 parent 93fb7b5 commit 65634948fa7a5bd486fbdba636ea3c28075e43fe @andyjdavis andyjdavis committed Apr 6, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 grade/report/grader/ajax_callbacks.php
  2. +1 −1 grade/report/grader/lib.php
  3. +1 −0 lang/en/error.php
@@ -46,7 +46,7 @@
if (!empty($userid) && !empty($itemid) && $newvalue !== false && !empty($type)) {
// Save the grade or feedback
if (!$grade_item = grade_item::fetch(array('id'=>$itemid, 'courseid'=>$courseid))) { // we must verify course id here!
- print_error('invalidgradeitmeid');
+ print_error('invalidgradeitemid');
}
/**
@@ -197,7 +197,7 @@ public function process_data($data) {
}
if (!$gradeitem = grade_item::fetch(array('id'=>$itemid, 'courseid'=>$this->courseid))) { // we must verify course id here!
- print_error('invalidgradeitmeid');
+ print_error('invalidgradeitemid');
}
// Pre-process grade
View
@@ -288,6 +288,7 @@
$string['invalidformatpara'] = 'Incorrect format for choose parameter';
$string['invalidformdata'] = 'Incorrect form data';
$string['invalidfunction'] = 'Incorrect function';
+$string['invalidgradeitemid'] = 'Incorrect grade item id';
$string['invalidgradeitmeid'] = 'Incorrect grade item id';
$string['invalidgroupid'] = 'Incorrect group id specified';
$string['invalidipformat'] = 'Invalid IP address format';

0 comments on commit 6563494

Please sign in to comment.