diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2012-01-12 13:42:29 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2012-01-12 13:42:29 +0100 |
commit | ba0fc4fa20067528effd4802e53ceeb959640825 (patch) | |
tree | 4f62217349d3afa39dbba3f7e19dac0aecb344f6 /includes/installer/Installer.php | |
parent | ca32f08966f1b51fcb19460f0996bb0c4048e6fe (diff) |
Update to MediaWiki 1.18.1
Diffstat (limited to 'includes/installer/Installer.php')
-rw-r--r-- | includes/installer/Installer.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 8101f7d6..ef484a8f 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -842,8 +842,13 @@ abstract class Installer { /** * Environment check for the server hostname. */ - protected function envCheckServer() { - $server = WebRequest::detectServer(); + protected function envCheckServer( $srv = null ) { + if ( $srv ) { + // wgServer was pre-defined, perhaps by the cli installer + $server = $srv; + } else { + $server = WebRequest::detectServer(); + } $this->showMessage( 'config-using-server', $server ); $this->setVar( 'wgServer', $server ); } |