[-] BO : fix #PSCFV-4816

This commit is contained in:
lLefevre committed 2012-10-10 10:00:07 +00:00
1 parent ddaf2d0da3
commit fc6623ff87
1 file changed
+4
@@ -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.');