From 7f7cacdf4e27883c1ded409c3ad929466f2ee537 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 20 Sep 2006 01:52:49 +0000 Subject: [PATCH] Made the debugging message a bit less passive --- lib/accesslib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/accesslib.php b/lib/accesslib.php index 13d94fb75d3..c9495b74c88 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