Skip to content

Commit

Permalink
MDL-44590 category: correct get_string component
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Mar 13, 2014
1 parent ef0ee34 commit 6bc5172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions course/classes/editcategory_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ public function validation($data, $files) {
if (!empty($data['idnumber'])) {
if ($existing = $DB->get_record('course_categories', array('idnumber' => $data['idnumber']))) {
if (!$data['id'] || $existing->id != $data['id']) {
$errors['idnumber']= get_string('categoryidnumbertaken');
$errors['idnumber'] = get_string('categoryidnumbertaken', 'error');
}
}
}
return $errors;
}
}
}

0 comments on commit 6bc5172

Please sign in to comment.