From: moodler Date: Wed, 20 Sep 2006 01:52:49 +0000 (+0000) Subject: Made the debugging message a bit less passive X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=7f7cacdf4e27883c1ded409c3ad929466f2ee537;p=moodle.git Made the debugging message a bit less passive --- diff --git a/lib/accesslib.php b/lib/accesslib.php index 13d94fb75d..c9495b74c8 100755 --- a/lib/accesslib.php +++ b/lib/accesslib.php @@ -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