Use theme support in the installer

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@40528 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
aoneil 2007-08-20 04:46:40 +00:00
parent eaac330b41
commit eaaedef5c7

View File

@ -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 = <<<PHP
// This line set's the current theme. More themes can be
// downloaded from http://www.silverstripe.com/cms-themes-and-skin
SSViewer::set_theme('blackcandy');
PHP;
}
echo "<li>Creating '$template/_config.php'...</li>";
flush();
@ -550,6 +559,8 @@ global \$databaseConfig;
// the line below:
//Director::set_environment_type('dev');
$theme
?>
PHP