mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
"MDL-14129, fix print_error"
This commit is contained in:
parent
d3b7ea93de
commit
1fdbcd2f1b
2 changed files with 3 additions and 2 deletions
|
@ -9,7 +9,7 @@
|
||||||
$id = required_param('id', PARAM_INT); // Course id
|
$id = required_param('id', PARAM_INT); // Course id
|
||||||
|
|
||||||
if (! $course = get_record('course', 'id', $id) ) {
|
if (! $course = get_record('course', 'id', $id) ) {
|
||||||
print_error("That's an invalid course id");
|
print_error('invalidcourseid');
|
||||||
}
|
}
|
||||||
|
|
||||||
require_login($course->id);
|
require_login($course->id);
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
|
|
||||||
if (!has_capability('moodle/course:managegroups', $context)) {
|
if (!has_capability('moodle/course:managegroups', $context)) {
|
||||||
print_error("You do not have the required permissions to manage groups.");
|
print_error('nopermissiontomanagegroup');
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (!confirm_sesskey()) {
|
//if (!confirm_sesskey()) {
|
||||||
|
|
|
@ -178,6 +178,7 @@ $string['nonmeaningfulcontent'] = 'Non meaningful content';
|
||||||
$string['noparticipatorycms'] = 'Sorry, but you have no participatory course modules to report on.';
|
$string['noparticipatorycms'] = 'Sorry, but you have no participatory course modules to report on.';
|
||||||
$string['nopermissions'] = 'Sorry, but you do not currently have permissions to do that ($a)';
|
$string['nopermissions'] = 'Sorry, but you do not currently have permissions to do that ($a)';
|
||||||
$string['nopermissiontoviewpage'] = 'You are not allowed to look at this page';
|
$string['nopermissiontoviewpage'] = 'You are not allowed to look at this page';
|
||||||
|
$string['nopermissiontomanagegroup'] = 'You do not have the required permissions to manage groups.';
|
||||||
$string['nosite'] = 'No sites';
|
$string['nosite'] = 'No sites';
|
||||||
$string['nositeid'] = 'No site ID';
|
$string['nositeid'] = 'No site ID';
|
||||||
$string['nostatstodisplay'] = 'There is no available data to display, sorry.';
|
$string['nostatstodisplay'] = 'There is no available data to display, sorry.';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue