From f87f846853071df5c700ed5295b9400cccec3bff Mon Sep 17 00:00:00 2001 From: rMalie Date: Thu, 26 Jan 2012 13:15:42 +0000 Subject: [PATCH] // Fix Exception in autoload --- classes/Autoload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/Autoload.php b/classes/Autoload.php index b70b10603..e8f3f34a3 100644 --- a/classes/Autoload.php +++ b/classes/Autoload.php @@ -154,11 +154,11 @@ class Autoload if (!$integrity_is_ok) { file_put_contents($filename, ''); - throw new Exception('Your file '.$filename.' is corrupted. Please remove this file, a new one will be regenerated automatically'); + throw new PrestashopException('Your file '.$filename.' is corrupted. Please remove this file, a new one will be regenerated automatically'); } } else - throw new Exception($filename.' is not writable!'); + throw new PrestashopException($filename.' is not writable!'); $this->index = $classes; }