summaryrefslogtreecommitdiff
path: root/framework/PradoBase.php
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 17:50:41 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 17:50:41 +0200
commitbfe0abdd90efd7715d2c25bab0abd0a6912e96d9 (patch)
treec1c5855da2364bc866b355d4c03afbceb09cbba3 /framework/PradoBase.php
parente041f12667fb4ebd86e10a5a5bc4f3ed37efb278 (diff)
Try to go back to default autoload.
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r--framework/PradoBase.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php
index 7cb7e841..f75cc680 100644
--- a/framework/PradoBase.php
+++ b/framework/PradoBase.php
@@ -98,10 +98,9 @@ class PradoBase
*/
public static function autoload($className)
{
- if ((@include($className.self::CLASS_FILE_EXT)) !== false) {
- return true;
- }
- return false;
+ 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.");
}
/**