]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #2695: Return false on autoload fail, rather than throwing exception
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 15 Feb 2011 20:54:09 +0000 (20:54 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 15 Feb 2011 20:54:09 +0000 (20:54 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8259 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/elgglib.php

index e9ae8b0ad5cbc3c10ea0069cdea9a45275413e18..a6de0bc67c0a784ae0b6f9daaba6c7f29b9c13c9 100644 (file)
@@ -23,7 +23,7 @@ function _elgg_autoload($class) {
        global $CONFIG;
 
        if (!isset($CONFIG->classes[$class]) || !include($CONFIG->classes[$class])) {
-               throw new Exception("Failed to autoload $class");
+               return false;
        }
 }