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

@ -522,6 +522,15 @@ class Installer extends InstallRequirements {
$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>"; echo "<li>Creating '$template/_config.php'...</li>";
flush(); flush();
@ -551,6 +560,8 @@ global \$databaseConfig;
//Director::set_environment_type('dev'); //Director::set_environment_type('dev');
$theme
?> ?>
PHP PHP
); );