MDL-35964 - blocks: add missing global $CFG

Thanks Rosie!
This commit is contained in:
Dan Poltawski
2012-10-31 14:28:24 +08:00
parent c9e835e69b
commit cedf976367
+2
View File
@@ -378,6 +378,8 @@ class block_manager {
* @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)) {