summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 43270472..9f20eb36 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;
}
/**