mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
The admin blocks page now doesn't crash when encountering an incompatible block;
instead, it shows a notice.
This commit is contained in:
parent
ff6191b742
commit
521729041a
@ -124,6 +124,10 @@
|
||||
}
|
||||
|
||||
foreach ($blocks as $block) {
|
||||
if(!block_is_compatible($block->name)) {
|
||||
notify('Block '. $block->name .' is not compatible with the current version of Mooodle and needs to be updated by a programmer.');
|
||||
continue;
|
||||
}
|
||||
if(($blockobject = block_instance($block->name)) === false) {
|
||||
// Failed to load
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user