X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FCliInstaller.php;h=f944fbed4a78de3d20e588718a054fc2a85db984;hb=b93eb55e42b8ea536711f4aacb8c8f424a59b359;hp=bb7e8776f3d3e611fda525409b58b990d7c1b42b;hpb=64797b281d1d8f3221aa61a00a36922b961f3922;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/CliInstaller.php b/includes/installer/CliInstaller.php index bb7e8776f3..f944fbed4a 100644 --- a/includes/installer/CliInstaller.php +++ b/includes/installer/CliInstaller.php @@ -114,7 +114,7 @@ class CliInstaller extends Installer { */ public function execute() { $vars = Installer::getExistingLocalSettings(); - if( $vars ) { + if ( $vars ) { $this->showStatusMessage( Status::newFatal( "config-localsettings-cli-upgrade" ) ); @@ -137,6 +137,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 $this->showMessage( "config-install-$step" ); } @@ -166,6 +168,7 @@ class CliInstaller extends Installer { $text = wfMessage( $msg, $params )->parse(); $text = preg_replace( '/(.*?)<\/a>/', '$2 <$1>', $text ); + return html_entity_decode( strip_tags( $text ), ENT_QUOTES ); } @@ -195,15 +198,17 @@ class CliInstaller extends Installer { if ( !$this->specifiedScriptPath ) { $this->showMessage( 'config-no-cli-uri', $this->getVar( "wgScriptPath" ) ); } + return parent::envCheckPath(); } protected function envGetDefaultServer() { - return $this->getVar( 'wgServer' ); + return null; // Do not guess if installing from CLI } public function dirIsExecutable( $dir, $url ) { $this->showMessage( 'config-no-cli-uploads-check', $dir ); + return false; } }