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:
thepurpleblob
2005-05-03 12:23:48 +00:00
parent 0d0cfc3bc9
commit 2d81e9080a
+1 -1
View File
@@ -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');