// Fix Exception in autoload
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12712 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -154,11 +154,11 @@ class Autoload
|
|||||||
if (!$integrity_is_ok)
|
if (!$integrity_is_ok)
|
||||||
{
|
{
|
||||||
file_put_contents($filename, '<?php return array(); ?>');
|
file_put_contents($filename, '<?php return array(); ?>');
|
||||||
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
|
else
|
||||||
throw new Exception($filename.' is not writable!');
|
throw new PrestashopException($filename.' is not writable!');
|
||||||
|
|
||||||
$this->index = $classes;
|
$this->index = $classes;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user