From: defacer Date: Thu, 27 Jan 2005 23:57:37 +0000 (+0000) Subject: Removing two error-suppression prefixes (@). I think that in the end, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=febeb16113c43e3cd5fff700dfd6b022ab2355bc;p=moodle.git Removing two error-suppression prefixes (@). I think that in the end, the only purpose they served was to make debugging harder. --- diff --git a/lib/blocklib.php b/lib/blocklib.php index 416e7cb86a..2a8d2f3ccc 100644 --- a/lib/blocklib.php +++ b/lib/blocklib.php @@ -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);