From 77a1c5cd7307a88f8b50496626ba9bf1e41d6c4f Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Thu, 28 Feb 2013 13:27:13 +0100 Subject: Adding composer.json and autoload fix --- framework/PradoBase.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/PradoBase.php') diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 403fdb80..dda60331 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -98,9 +98,10 @@ class PradoBase */ public static function autoload($className) { - include_once($className.self::CLASS_FILE_EXT); - if(!class_exists($className,false) && !interface_exists($className,false)) - self::fatalError("Class file for '$className' cannot be found."); + if ((@include($className.self::CLASS_FILE_EXT)) !== false) { + return true; + } + return false; } /** -- cgit v1.2.3