mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
Delete old _config.php files, this allows reinstalling with a different template (merged from 2.0.2 branch, r37948)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40482 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
45de8ebc03
commit
31efa19654
@ -475,6 +475,15 @@ class Installer extends InstallRequirements {
|
||||
<?
|
||||
flush();
|
||||
|
||||
// Delete old _config.php files
|
||||
if(file_exists('tutorial/_config.php')) {
|
||||
unlink('tutorial/_config.php');
|
||||
}
|
||||
|
||||
if(file_exists('mysite/_config.php')) {
|
||||
unlink('mysite/_config.php');
|
||||
}
|
||||
|
||||
// Write the config file
|
||||
|
||||
$template = $_POST['template'] == 'tutorial' ? 'tutorial' : 'mysite';
|
||||
|
Loading…
Reference in New Issue
Block a user