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
11
install.php
11
install.php
@ -475,10 +475,19 @@ class Installer extends InstallRequirements {
|
|||||||
<?
|
<?
|
||||||
flush();
|
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
|
// Write the config file
|
||||||
|
|
||||||
$template = $_POST['template'] == 'tutorial' ? 'tutorial' : 'mysite';
|
$template = $_POST['template'] == 'tutorial' ? 'tutorial' : 'mysite';
|
||||||
|
|
||||||
echo "<li>Creating '$template/_config.php'...</li>";
|
echo "<li>Creating '$template/_config.php'...</li>";
|
||||||
flush();
|
flush();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user