MDL-42648 lib: Clean theme throws exception if set_pagelayout is called too late.
This commit is contained in:
@@ -3063,7 +3063,12 @@ EOD;
|
||||
'data-blockregion' => $displayregion,
|
||||
'data-droptarget' => '1'
|
||||
);
|
||||
return html_writer::tag($tag, $this->blocks_for_region($region), $attributes);
|
||||
if ($this->page->blocks->region_has_content($region, $this)) {
|
||||
$content = $this->blocks_for_region($region);
|
||||
} else {
|
||||
$content = '';
|
||||
}
|
||||
return html_writer::tag($tag, $content, $attributes);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user