[-] BO : fix #PSCFV-4816
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@17821 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -346,6 +346,10 @@ class AdminThemesControllerCore extends AdminController
|
|||||||
public function processDelete()
|
public function processDelete()
|
||||||
{
|
{
|
||||||
$obj = $this->loadObject();
|
$obj = $this->loadObject();
|
||||||
|
|
||||||
|
if ($obj && is_dir(_PS_ALL_THEMES_DIR_.$obj->directory))
|
||||||
|
Tools::deleteDirectory(_PS_ALL_THEMES_DIR_.$obj->directory.'/');
|
||||||
|
|
||||||
if ($obj && $obj->isUsed())
|
if ($obj && $obj->isUsed())
|
||||||
{
|
{
|
||||||
$this->errors[] = $this->l('This theme is already used by at least one shop. Please choose another theme first.');
|
$this->errors[] = $this->l('This theme is already used by at least one shop. Please choose another theme first.');
|
||||||
|
|||||||
Reference in New Issue
Block a user