Removing two error-suppression prefixes (@). I think that in the end,

the only purpose they served was to make debugging harder.
This commit is contained in:
defacer
2005-01-27 23:57:37 +00:00
parent e355a2d304
commit febeb16113
+2 -2
View File
@@ -82,9 +82,9 @@ function block_instance($blockname, $instance = NULL) {
function block_load_class($blockname) {
global $CFG;
@include_once($CFG->dirroot.'/blocks/moodleblock.class.php');
include_once($CFG->dirroot.'/blocks/moodleblock.class.php');
$classname = 'block_'.$blockname;
@include_once($CFG->dirroot.'/blocks/'.$blockname.'/block_'.$blockname.'.php');
include_once($CFG->dirroot.'/blocks/'.$blockname.'/block_'.$blockname.'.php');
// After all this, return value indicating success or failure
return class_exists($classname);