mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-44590 category: correct get_string component
This commit is contained in:
parent
9b8555fbea
commit
bd3c9587b7
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user