]> git.mjollnir.org Git - moodle.git/commitdiff
Made the debugging message a bit less passive
authormoodler <moodler>
Wed, 20 Sep 2006 01:52:49 +0000 (01:52 +0000)
committermoodler <moodler>
Wed, 20 Sep 2006 01:52:49 +0000 (01:52 +0000)
lib/accesslib.php

index 13d94fb75d390df2096cee3cfe589d1a643514c1..c9495b74c8839ea1e9e56f57a5a9c1591155d6d7 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("Checking for unknown cabability '$capability' in context {$context->id}.");
+        debugging('Cabability "'.$capability.'" was not found! This should be fixed in code.');
     }
 
     if (empty($userid) && empty($USER->capabilities)) {   // Real user, first time here