From: dongsheng Date: Thu, 8 May 2008 08:49:02 +0000 (+0000) Subject: "MDL-14129, fix print_error" X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1fdbcd2f1b82cc98560b79c5dd09375a07fcec83;p=moodle.git "MDL-14129, fix print_error" --- diff --git a/course/import/groups/index.php b/course/import/groups/index.php index 9a41cc60a3..bf80779a44 100755 --- a/course/import/groups/index.php +++ b/course/import/groups/index.php @@ -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()) { diff --git a/lang/en_utf8/error.php b/lang/en_utf8/error.php index 2e8ab5aebe..b6c4f66aef 100644 --- a/lang/en_utf8/error.php +++ b/lang/en_utf8/error.php @@ -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.';