//added more check on module upload part 2
This commit is contained in:
1 parent
337437be74
commit
83318055ce
1 file changed
+1
@@ -372,6 +372,7 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
$this->errors[] = Tools::displayError('The module '.$folder.' you uploaded is not a module');
|
$this->errors[] = Tools::displayError('The module '.$folder.' you uploaded is not a module');
|
||||||
|
|
||||||
@unlink($file);
|
@unlink($file);
|
||||||
|
@unlink($tmp_folder);
|
||||||
if (!count($this->errors) && $success && $redirect)
|
if (!count($this->errors) && $success && $redirect)
|
||||||
Tools::redirectAdmin(self::$currentIndex.'&conf=8'.'&token='.$this->token);
|
Tools::redirectAdmin(self::$currentIndex.'&conf=8'.'&token='.$this->token);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user