mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-50049 deprecation: Extra minor fixes.
- complete and cleanup upgrade.txt - replace remaining uses in comments. - fix some incorrect bulk-replacement in previous commit.
This commit is contained in:
parent
b164e2ec30
commit
188458a604
9 changed files with 14 additions and 12 deletions
|
@ -432,7 +432,7 @@ function has_capability($capability, context $context, $user = null, $doanything
|
|||
// context path/depth must be valid
|
||||
if (empty($context->path) or $context->depth == 0) {
|
||||
// this should not happen often, each upgrade tries to rebuild the context paths
|
||||
debugging('Context id '.$context->id.' does not have valid path, please use build_context_path()');
|
||||
debugging('Context id '.$context->id.' does not have valid path, please use context_helper::build_all_paths()');
|
||||
if (is_siteadmin($userid)) {
|
||||
return true;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue