Skip to content

Commit

Permalink
// Small fix for theme installation
Browse files Browse the repository at this point in the history
  • Loading branch information
julienbourdeau committed Dec 3, 2014
1 parent 4cebad9 commit bdec19e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controllers/admin/AdminThemesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,10 @@ protected function installTheme($theme_dir, $sandbox = false)
if (file_exists($theme_doc_dir))
Tools::deleteDirectory($theme_doc_dir);

Tools::recurseCopy($sandbox.$theme_dir.'/themes/'.$theme_dir.'/', $target_dir.'/');
mkdir($target_dir);
mkdir($theme_doc_dir);

Tools::recurseCopy($sandbox.$theme_dir.'/themes/'.$theme->directory.'/', $target_dir.'/');
Tools::recurseCopy($sandbox.$theme_dir.'/doc/', $theme_doc_dir);
Tools::recurseCopy($sandbox.$theme_dir.'/modules/', _PS_MODULE_DIR_);
}
Expand Down

0 comments on commit bdec19e

Please sign in to comment.