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:
Eloy Lafuente (stronk7) 2015-07-10 01:59:31 +02:00
parent b164e2ec30
commit 188458a604
9 changed files with 14 additions and 12 deletions

View file

@ -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 {