Commenting out some excess of debug info.

Merged from MOODLE_19_STABLE
This commit is contained in:
stronk7 2007-10-18 15:57:15 +00:00
parent 3b34f698b5
commit 6100dad06e

View File

@ -404,7 +404,7 @@ function has_capability($capability, $context, $userid=NULL, $doanything=true) {
}
// Load accessdata for below-the-course contexts
if (!path_inaccessdata($context->path,$USER->access)) {
error_log("loading access for context {$context->path} for $capability at {$context->contextlevel} {$context->id}");
// error_log("loading access for context {$context->path} for $capability at {$context->contextlevel} {$context->id}");
// $bt = debug_backtrace();
// error_log("bt {$bt[0]['file']} {$bt[0]['line']}");
load_subcontext($USER->id, $context, $USER->access);
@ -421,7 +421,7 @@ function has_capability($capability, $context, $userid=NULL, $doanything=true) {
}
// Load accessdata for below-the-course contexts as needed
if (!path_inaccessdata($context->path, $ACCESS[$userid])) {
error_log("loading access for context {$context->path} for $capability at {$context->contextlevel} {$context->id}");
// error_log("loading access for context {$context->path} for $capability at {$context->contextlevel} {$context->id}");
// $bt = debug_backtrace();
// error_log("bt {$bt[0]['file']} {$bt[0]['line']}");
load_subcontext($userid, $context, $ACCESS[$userid]);
@ -1405,7 +1405,7 @@ function load_subcontext($userid, $context, &$accessdata) {
$accessdata['rdef'][$key] =& $newrdefs[$key];
}
error_log("loaded {$context->path}");
// error_log("loaded {$context->path}");
$accessdata['loaded'][] = $context->path;
}