From 8e64aa20e9ef09044ad5f13f31dbf8eef50d17aa Mon Sep 17 00:00:00 2001 From: fBrignoli Date: Tue, 16 Aug 2011 15:53:04 +0000 Subject: [PATCH] // Exception removed git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8077 b9a71923-0436-4b27-9f14-aed3839534dd --- classes/Autoload.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/classes/Autoload.php b/classes/Autoload.php index f1f7e0580..46175918e 100644 --- a/classes/Autoload.php +++ b/classes/Autoload.php @@ -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); } /**