]> git.mjollnir.org Git - moodle.git/commitdiff
Typo in lib/accesslib.php MDL-6728, found by Nicolas Martignoni.
authorskodak <skodak>
Sun, 8 Oct 2006 10:52:54 +0000 (10:52 +0000)
committerskodak <skodak>
Sun, 8 Oct 2006 10:52:54 +0000 (10:52 +0000)
lib/accesslib.php

index cc30162655fb310cb542b2ea5b5331ad4c6798d0..d5bf72b124789e423967f9ff4eb49e012030a875 100755 (executable)
@@ -273,7 +273,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
     global $USER, $CONTEXT, $CFG;
 
     if (debugging() && !record_exists('capabilities', 'name', $capability)) {
-        debugging('Cabability "'.$capability.'" was not found! This should be fixed in code.');
+        debugging('Capability "'.$capability.'" was not found! This should be fixed in code.');
     }
 
     if (empty($userid) && empty($USER->capabilities)) {   // Real user, first time here
@@ -1164,6 +1164,7 @@ function create_context($contextlevel, $instanceid) {
     if (!$context = get_record('context','contextlevel',$contextlevel,'instanceid',$instanceid)) {
         if (!validate_context($contextlevel, $instanceid)) {
             debugging('Error: Invalid context creation request for level "'.s($contextlevel).'", instance "'.s($instanceid).'".');
+            debug_print_backtrace();
             return NULL;
         }
         $context = new object();