MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id()
This commit is contained in:
@@ -104,7 +104,7 @@ class block_html extends block_base {
|
||||
function content_is_trusted() {
|
||||
global $SCRIPT;
|
||||
|
||||
if (!$context = get_context_instance_by_id($this->instance->parentcontextid)) {
|
||||
if (!$context = context::instance_by_id($this->instance->parentcontextid)) {
|
||||
return false;
|
||||
}
|
||||
//find out if this block is on the profile page
|
||||
|
||||
Reference in New Issue
Block a user