Changed include to require for base_block class. Won't get far without this
and puts error message in the right place if there is a problem
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ function block_load_class($blockname) {
|
||||
return false;
|
||||
}
|
||||
|
||||
include_once($CFG->dirroot.'/blocks/moodleblock.class.php');
|
||||
require_once($CFG->dirroot.'/blocks/moodleblock.class.php');
|
||||
$classname = 'block_'.$blockname;
|
||||
include_once($CFG->dirroot.'/blocks/'.$blockname.'/block_'.$blockname.'.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user