Skip to content
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 bd44a3b commit 24ca82df7e1aaf732d3452f99b6822851a36f89a @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
View
2 grade/report/grader/ajax_callbacks.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');
}
/**
View
2 grade/report/grader/lib.php
@@ -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
1 lang/en/error.php
@@ -287,6 +287,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 24ca82d

Please sign in to comment.
Something went wrong with that request. Please try again.