X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstaller.php;h=5ea9bfea329c455ba008bef1a309f4f21185b1d5;hb=827c6bfa416d9d0de8cc8e22f9f3fa36d8129d44;hp=2906a83bf451517c6cdadf80f42936f4fc7d7ed0;hpb=b063a5bce2fd8e97e11fc1359d4e624d3fa5f480;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index 2906a83bf4..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;