]> git.mjollnir.org Git - moodle.git/commitdiff
"MDL-14129, fix print_error"
authordongsheng <dongsheng>
Thu, 8 May 2008 08:49:02 +0000 (08:49 +0000)
committerdongsheng <dongsheng>
Thu, 8 May 2008 08:49:02 +0000 (08:49 +0000)
course/import/groups/index.php
lang/en_utf8/error.php

index 9a41cc60a3cdc5c948a4302e538e41661d5a2c12..bf80779a441b358e95f8a1d20dd49f6d0bba9d74 100755 (executable)
@@ -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()) {
index 2e8ab5aebe4ed4d4ddcd6c058b9dc95bb3561fa5..b6c4f66aef4b29c7fc0a3f689085d71f4f6875a5 100644 (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.';