From d61d76fe0f7f70866526f3a02ca08040b5bdd4b9 Mon Sep 17 00:00:00 2001
From: robocoder <anthon.pang@gmail.com>
Date: Mon, 5 Jul 2010 03:39:40 +0000
Subject: [PATCH] autoloader should not throw exception as it blocks the
 stacking of autoloaders

git-svn-id: http://dev.piwik.org/svn/trunk@2424 59fd770c-687e-43c8-a1e3-f5a4ff64c105
---
 core/Loader.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/core/Loader.php b/core/Loader.php
index e88c1db1af..606539ed57 100644
--- a/core/Loader.php
+++ b/core/Loader.php
@@ -72,7 +72,8 @@ class Piwik_Loader
 			$lastSlash = strrpos($classPath, '/');
 			$classPath = ($lastSlash === false) ? '' : substr($classPath, 0, $lastSlash);
 		}
-		throw new Exception("$class could not be autoloaded.");
+
+		return false;
 	}
 }
 
-- 
GitLab