The admin blocks page now doesn't crash when encountering an incompatible block;

instead, it shows a notice.
This commit is contained in:
defacer 2005-04-30 03:22:59 +00:00
parent ff6191b742
commit 521729041a

View File

@ -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;