From 55e0360da3728c21aaaa687119b3842d658a27e2 Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Sat, 6 Mar 2010 22:36:19 +0100 Subject: [PATCH] Makes compilation error debugging easier. Signed-off-by: Florent Bruneau --- include/platal.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/platal.inc.php b/include/platal.inc.php index f47004c..d8155f5 100644 --- a/include/platal.inc.php +++ b/include/platal.inc.php @@ -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; -- 2.1.4