]> git.mjollnir.org Git - moodle.git/commitdiff
Removing two error-suppression prefixes (@). I think that in the end,
authordefacer <defacer>
Thu, 27 Jan 2005 23:57:37 +0000 (23:57 +0000)
committerdefacer <defacer>
Thu, 27 Jan 2005 23:57:37 +0000 (23:57 +0000)
the only purpose they served was to make debugging harder.

lib/blocklib.php

index 416e7cb86a3d15a830fbf87f51d3ac2646d5b24d..2a8d2f3ccc9c4c36b425de4ee0bb858c190a03e4 100644 (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);