Makes compilation error debugging easier.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 6 Mar 2010 21:36:19 +0000 (22:36 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sat, 6 Mar 2010 21:36:19 +0000 (22:36 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
include/platal.inc.php

index f47004c..d8155f5 100644 (file)
@@ -43,8 +43,10 @@ function pl_autoload($cls, array $pathes = array())
 
     array_unshift($pathes, 'core/classes', 'classes');
     foreach ($pathes as $path) {
-        if (@include_once "$basepath/$path/$cls.php") {
-            return true;
+        if (file_exists("$basepath/$path/$cls.php")) {
+            if (include_once "$basepath/$path/$cls.php") {
+                return true;
+            }
         }
     }
     return false;