mirror of
https://github.com/silverstripe/silverstripe-installer
synced 2024-10-22 17:05:33 +02:00
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:
parent
eaac330b41
commit
eaaedef5c7
11
install.php
11
install.php
@ -522,6 +522,15 @@ class Installer extends InstallRequirements {
|
||||
|
||||
$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();
|
||||
|
||||
@ -551,6 +560,8 @@ global \$databaseConfig;
|
||||
|
||||
//Director::set_environment_type('dev');
|
||||
|
||||
$theme
|
||||
|
||||
?>
|
||||
PHP
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user