mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'MDL-57176-master' of git://github.com/damyon/moodle
This commit is contained in:
commit
1cbc346092
@ -1053,6 +1053,11 @@ class block_manager {
|
||||
return;
|
||||
}
|
||||
|
||||
// Never add a duplicate block required by theme.
|
||||
if ($DB->record_exists('block_instances', array('blockname' => $blockname, 'requiredbytheme' => 1))) {
|
||||
return;
|
||||
}
|
||||
|
||||
$systemcontext = context_system::instance();
|
||||
$defaultregion = $this->get_default_region();
|
||||
// Add a special system wide block instance only for themes that require it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user