]> git.mjollnir.org Git - moodle.git/commit
lib/blocklib: MDL-20146 - Don't mask errors as a way to ignore missing code files
authorpoltawski <poltawski>
Sat, 22 Aug 2009 11:24:39 +0000 (11:24 +0000)
committerpoltawski <poltawski>
Sat, 22 Aug 2009 11:24:39 +0000 (11:24 +0000)
commitd836aa4b4fbcce3ed078852c1da384a9a2a5d9fe
treecc4a4de1bb9898887e74b65c2c746a82d556eead
parent88b49294eca47f622c5b70a1c7f97fbadf8cb104
lib/blocklib: MDL-20146 - Don't mask errors as a way to ignore missing code files

Instead of simply ignoring all errors from blocks, allow the errors to be
exposed and test if the file exists. The previous solution makes it very
hard to debug problems with blocks and gives the 'white screen of death' even
with debugging set as high as it can go.

Also ensure that blocks without code are not added to the list of instances,
as I assume was the intended behaviour.
lib/blocklib.php