MDL-39474 introduce $CFG->debugdeveloper and cleanup $CFG init
This commit is contained in:
+1
-1
@@ -3792,7 +3792,7 @@ function get_users_by_capability(context $context, $capability, $fields = '', $s
|
||||
$fields = 'u.*';
|
||||
}
|
||||
} else {
|
||||
if (debugging('', DEBUG_DEVELOPER) && strpos($fields, 'u.*') === false && strpos($fields, 'u.id') === false) {
|
||||
if ($CFG->debugdeveloper && strpos($fields, 'u.*') === false && strpos($fields, 'u.id') === false) {
|
||||
debugging('u.id must be included in the list of fields passed to get_users_by_capability().', DEBUG_DEVELOPER);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user