summaryrefslogtreecommitdiff
path: root/includes/installer/CliInstaller.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/installer/CliInstaller.php')
-rw-r--r--includes/installer/CliInstaller.php20
1 files changed, 15 insertions, 5 deletions
diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php
index f944fbed..72907408 100644
--- a/includes/installer/CliInstaller.php
+++ b/includes/installer/CliInstaller.php
@@ -49,9 +49,9 @@ class CliInstaller extends Installer {
/**
* Constructor.
*
- * @param $siteName
- * @param $admin
- * @param $option Array
+ * @param string $siteName
+ * @param string $admin
+ * @param array $option
*/
function __construct( $siteName, $admin = null, array $option = array() ) {
global $wgContLang;
@@ -107,6 +107,15 @@ class CliInstaller extends Installer {
if ( isset( $option['pass'] ) ) {
$this->setVar( '_AdminPassword', $option['pass'] );
}
+
+ // Set up the default skins
+ $skins = $this->findExtensions( 'skins' );
+ $this->setVar( '_Skins', $skins );
+
+ if ( $skins ) {
+ $skinNames = array_map( 'strtolower', $skins );
+ $this->setVar( 'wgDefaultSkin', $this->getDefaultSkin( $skinNames ) );
+ }
}
/**
@@ -138,7 +147,8 @@ class CliInstaller extends Installer {
public function startStage( $step ) {
// Messages: config-install-database, config-install-tables, config-install-interwiki,
- // config-install-stats, config-install-keys, config-install-sysop, config-install-mainpage
+ // config-install-stats, config-install-keys, config-install-sysop, config-install-mainpage,
+ // config-install-extensions
$this->showMessage( "config-install-$step" );
}
@@ -158,7 +168,7 @@ class CliInstaller extends Installer {
}
/**
- * @param $params array
+ * @param array $params
*
* @return string
*/