mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-49611 completion: Update dangling err_nocriteria lang strings
This commit is contained in:
parent
b5dbb126f9
commit
03f3f7180f
@ -133,7 +133,7 @@ if (empty($completions)) {
|
||||
echo html_writer::start_tag('tr');
|
||||
echo html_writer::start_tag('td', array('colspan' => '2'));
|
||||
echo html_writer::start_tag('br');
|
||||
echo $OUTPUT->box(get_string('err_nocriteria', 'completion'), 'noticebox');
|
||||
echo $OUTPUT->box(get_string('nocriteriaset', 'completion'), 'noticebox');
|
||||
echo html_writer::end_tag('td');
|
||||
echo html_writer::end_tag('tr');
|
||||
echo html_writer::end_tag('tbody');
|
||||
|
@ -301,7 +301,7 @@ class core_completion_external extends external_api {
|
||||
|
||||
$completions = $info->get_completions($user->id);
|
||||
if (empty($completions)) {
|
||||
throw new moodle_exception('err_nocriteria', 'completion');
|
||||
throw new moodle_exception('nocriteriaset', 'completion');
|
||||
}
|
||||
|
||||
// Load course completion.
|
||||
|
@ -91,7 +91,7 @@ $modinfo = get_fast_modinfo($course);
|
||||
$completion = new completion_info($course);
|
||||
|
||||
if (!$completion->has_criteria()) {
|
||||
print_error('err_nocriteria', 'completion', $CFG->wwwroot.'/course/report.php?id='.$course->id);
|
||||
print_error('nocriteriaset', 'completion', $CFG->wwwroot.'/course/report.php?id='.$course->id);
|
||||
}
|
||||
|
||||
// Get criteria and put in correct order
|
||||
|
Loading…
x
Reference in New Issue
Block a user