Made the debugging message a bit less passive

This commit is contained in:
moodler 2006-09-20 01:52:49 +00:00
parent f3fb11f378
commit 7f7cacdf4e

View File

@ -273,7 +273,7 @@ function has_capability($capability, $context=NULL, $userid=NULL, $doanything=tr
global $USER, $CONTEXT, $CFG; global $USER, $CONTEXT, $CFG;
if (debugging() && !record_exists('capabilities', 'name', $capability)) { 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 if (empty($userid) && empty($USER->capabilities)) { // Real user, first time here