importation d'un theme en cours

This commit is contained in:
fredtempez 2018-12-28 17:13:26 +01:00
parent 27aaed320a
commit 2697788377

View File

@ -449,8 +449,13 @@ class theme extends common {
*/ */
public function manage() { public function manage() {
if($this->isPost() ) { if($this->isPost() ) {
$archive = $this->getInput('themeManageImport', helper::FILTER_STRING_SHORT, true); $zipFilename = $this->getInput('themeManageImport', helper::FILTER_STRING_SHORT, true);
$zip = new ZipArchive();
if ($zip->open($zipFilename) === TRUE) {
echo $zip->extractTo('site/');
die();
$zip->close();
}
} }
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([