"MDL-14129, fix print_error"

This commit is contained in:
dongsheng 2008-05-08 08:49:02 +00:00
parent d3b7ea93de
commit 1fdbcd2f1b
2 changed files with 3 additions and 2 deletions

View file

@ -9,7 +9,7 @@
$id = required_param('id', PARAM_INT); // Course id
if (! $course = get_record('course', 'id', $id) ) {
print_error("That's an invalid course id");
print_error('invalidcourseid');
}
require_login($course->id);
@ -17,7 +17,7 @@
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()) {

View file

@ -178,6 +178,7 @@ $string['nonmeaningfulcontent'] = 'Non meaningful content';
$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['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['nositeid'] = 'No site ID';
$string['nostatstodisplay'] = 'There is no available data to display, sorry.';