MDL-44590 category: correct get_string component

This commit is contained in:
Dan Poltawski 2014-03-13 09:04:27 +08:00
parent 9b8555fbea
commit bd3c9587b7

View File

@ -125,10 +125,10 @@ class core_course_editcategory_form extends moodleform {
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;
}
}
}