summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-02-28 13:27:13 +0100
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-02-28 13:27:13 +0100
commit77a1c5cd7307a88f8b50496626ba9bf1e41d6c4f (patch)
treeca96c53f9286763869c0fefe975192e5f365d257
parentb50851ad6a0e8ea136de5ef17bc7559ecd079b7d (diff)
Adding composer.json and autoload fix
-rw-r--r--composer.json2
-rw-r--r--framework/PradoBase.php7
2 files changed, 5 insertions, 4 deletions
diff --git a/composer.json b/composer.json
index bef8b8f7..dddbdfdf 100644
--- a/composer.json
+++ b/composer.json
@@ -4,6 +4,6 @@
"homepage": "http://www.pradosoft.com/",
"license": "BSD",
"require": {
- "php": ">=5.2.4",
+ "php": ">=5.2.4"
}
}
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;
}
/**