aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/elgglib.php
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 20:54:09 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-15 20:54:09 +0000
commit704f111bc362b3dd5b1553d2bcea46ef675537d2 (patch)
treed1b2b0bd4515470639a5766f4d136c520d0ab730 /engine/lib/elgglib.php
parent05858d88d09f7594e427cde3fca8cdafa8bcae68 (diff)
downloadelgg-704f111bc362b3dd5b1553d2bcea46ef675537d2.tar.gz
elgg-704f111bc362b3dd5b1553d2bcea46ef675537d2.tar.bz2
Fixes #2695: Return false on autoload fail, rather than throwing exception
git-svn-id: http://code.elgg.org/elgg/trunk@8259 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/elgglib.php')
-rw-r--r--engine/lib/elgglib.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index e9ae8b0ad..a6de0bc67 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -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;
}
}