X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstaller.php;h=5ea9bfea329c455ba008bef1a309f4f21185b1d5;hb=236488d398046838059f758b0915341648b64c7b;hp=e99ea7c049b80a33bba1401173a1646dd1e35299;hpb=587d08c5a626f8195def9f82ee83e17c85824db8;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index e99ea7c049..5ea9bfea32 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -595,11 +595,10 @@ abstract class Installer { global $wgAutoloadClasses; $wgAutoloadClasses = []; - // @codingStandardsIgnoreStart // LocalSettings.php should not call functions, except wfLoadSkin/wfLoadExtensions // Define the required globals here, to ensure, the functions can do it work correctly. + // phpcs:ignore MediaWiki.VariableAnalysis.UnusedGlobalVariables global $wgExtensionDirectory, $wgStyleDirectory; - // @codingStandardsIgnoreEnd MediaWiki\suppressWarnings(); $_lsExists = file_exists( "$IP/LocalSettings.php" ); @@ -688,13 +687,11 @@ abstract class Installer { try { $out = $wgParser->parse( $text, $this->parserTitle, $this->parserOptions, $lineStart ); - $html = $out->getText(); + $html = $out->getText( [ + 'enableSectionEditLinks' => false, + ] ); } catch ( MediaWiki\Services\ServiceDisabledException $e ) { $html = ' ' . htmlspecialchars( $text ); - - if ( !empty( $this->debug ) ) { - $html .= ""; - } } return $html; @@ -1485,6 +1482,11 @@ abstract class Installer { } } if ( $status->isOk() ) { + $this->showMessage( + 'config-install-success', + $this->getVar( 'wgServer' ), + $this->getVar( 'wgScriptPath' ) + ); $this->setVar( '_InstallDone', true ); }