Skip to content

Commit

Permalink
Dev Clean global directory in demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 8, 2020
1 parent ac42de5 commit 3531ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -143,7 +143,7 @@ third_party/theseer/
third_party/vimeo/
third_party/webmozart/
upload/templates/

assets/packages/ckeditor/samples


## ignore Vagrantfile and Adminer
Expand Down
1 change: 1 addition & 0 deletions application/commands/DemomodeCommand.php
Expand Up @@ -104,6 +104,7 @@ private function _resetFiles()
$sBaseUploadDir = dirname(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'upload';

SureRemoveDir($sBaseUploadDir.DIRECTORY_SEPARATOR.'surveys', false, ['index.html']);
SureRemoveDir($sBaseUploadDir.DIRECTORY_SEPARATOR.'global', false, ['index.html']);
SureRemoveDir($sBaseUploadDir.DIRECTORY_SEPARATOR.'templates', false);
SureRemoveDir($sBaseUploadDir.DIRECTORY_SEPARATOR.'themes'.DIRECTORY_SEPARATOR.'survey', false, ['index.html']);
SureRemoveDir($sBaseUploadDir.DIRECTORY_SEPARATOR.'themes'.DIRECTORY_SEPARATOR.'question', false);
Expand Down

0 comments on commit 3531ea5

Please sign in to comment.