// Exception removed

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8077 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
fBrignoli
2011-08-16 15:53:04 +00:00
parent a1303a0cb0
commit 8e64aa20e9
+5 -4
View File
@@ -25,6 +25,9 @@
* International Registered Trademark & Property of PrestaShop SA
*/
/**
* @since 1.5
*/
class Autoload
{
/**
@@ -103,15 +106,13 @@ class Autoload
if (isset($this->index[$classname.'Core']))
require_once($this->root_dir.$this->index[$classname.'Core']);
require_once($this->root_dir.$this->index[$classname]);
if (isset($this->index[$classname]))
require_once($this->root_dir.$this->index[$classname]);
}
}
// Call directly ProductCore, ShopCore class
else
require_once($this->root_dir.$this->index[$classname]);
if (!class_exists($classname, false) && !interface_exists($classname, false))
throw new Exception('Class not found: '.$classname);
}
/**