Permalink
Browse files

MDL-35964 - blocks: add missing global $CFG

Thanks Rosie!
  • Loading branch information...
danpoltawski committed Oct 31, 2012
1 parent c9e835e commit cedf976367bafd4158ac434905adad8c40e664a2
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/blocklib.php
View
@@ -378,6 +378,8 @@ public function get_installed_blocks() {
* @return array names of block types that cannot be added or deleted. E.g. array('navigation','settings').
*/
public static function get_undeletable_block_types() {
global $CFG;
if (!isset($CFG->undeletableblocktypes) || (!is_array($CFG->undeletableblocktypes) && !is_string($CFG->undeletableblocktypes))) {
return array('navigation','settings');
} else if (is_string($CFG->undeletableblocktypes)) {

0 comments on commit cedf976

Please sign in to comment.