summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-03-01 12:57:00 +0100
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-03-01 12:57:00 +0100
commitdc8e4514435fdc0efccd6a4ad5a9c4dd805c0f3d (patch)
tree53822c7d35fdadf51c7ff69574f96bc2251b8d66
parent17a4366a9f68f45e1d05096af4adc94f489183e9 (diff)
Edit autoload() as for issue #4453.2.1
-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;
}
/**