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