From eaaedef5c7ebb81e39830de55b3118393a1257ec Mon Sep 17 00:00:00 2001 From: aoneil Date: Mon, 20 Aug 2007 04:46:40 +0000 Subject: [PATCH] Use theme support in the installer git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40528 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- install.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/install.php b/install.php index 138bf1e..2177033 100644 --- a/install.php +++ b/install.php @@ -520,7 +520,16 @@ class Installer extends InstallRequirements { // Write the config file - $template = $_POST['template'] == 'tutorial' ? 'tutorial' : 'mysite'; + $template = $_POST['template'] == 'tutorial' ? 'tutorial' : 'mysite'; + + $theme = ''; + if($_POST['template'] == 'default') { + $theme = <<Creating '$template/_config.php'..."; flush(); @@ -550,6 +559,8 @@ global \$databaseConfig; // the line below: //Director::set_environment_type('dev'); + +$theme ?> PHP