]> git.mjollnir.org Git - moodle.git/commitdiff
Fix error string
authormoodler <moodler>
Mon, 14 Aug 2006 06:03:30 +0000 (06:03 +0000)
committermoodler <moodler>
Mon, 14 Aug 2006 06:03:30 +0000 (06:03 +0000)
admin/index.php
lang/en_utf8/error.php

index 3c11774e9a6c1e9baeb9c1a24285304fa5d9b4e0..cdb028bc09e848afabae2c743ae42d21074989d6 100644 (file)
 
     $context = get_context_instance(CONTEXT_SYSTEM, SITEID);
 
-    if (!has_capability('moodle/site:config', $context)) {
-        print_error("permissionconfig", '', "$CFG->wwwroot/login/index.php");
-    }
+    require_capability('moodle/site:config', $context);
+
 
 /// Check if we are returning from moodle.org registration and if so, we mark that fact to remove reminders
 
index 358c569ce014be6aaad1582d94687e6dc54de476..2031b6c9a66029522861e90a185771ca1e663c77 100644 (file)
@@ -42,6 +42,7 @@ $string['mustbeteacher'] = 'You must be a teacher to look at this page';
 $string['noinstances'] = 'There are no instances of $a in this course! ';
 $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['notavailable'] = 'That is not currently available';
 $string['onlyeditown'] = 'You can only edit your own information';
 $string['onlyeditingteachers'] = 'Only editing teachers can do that.';