X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FWebInstaller.php;h=e1070c6e8f2512e0e92e1823a536f9a6f1da02e4;hb=a51d45f85b5d2e63c71bb2a01ca484d9ed070829;hp=f555c0f1b06f8c4f590eca6f056ea2834f126767;hpb=8e744f6f482b80a806d43fb4ea2eded4c7fd517f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index f555c0f1b0..e1070c6e8f 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -140,9 +140,9 @@ class WebInstaller extends Installer { $this->request = $request; // Add parser hooks - global $wgParser; - $wgParser->setHook( 'downloadlink', [ $this, 'downloadLinkHook' ] ); - $wgParser->setHook( 'doclink', [ $this, 'docLink' ] ); + $parser = MediaWikiServices::getInstance()->getParser(); + $parser->setHook( 'downloadlink', [ $this, 'downloadLinkHook' ] ); + $parser->setHook( 'doclink', [ $this, 'docLink' ] ); } /** @@ -920,7 +920,7 @@ class WebInstaller extends Installer { if ( !isset( $params['labelAttribs'] ) ) { $params['labelAttribs'] = []; } - $labelText = $params['rawtext'] ?? $this->parse( wfMessage( $params['label'] )->text() ); + $labelText = $params['rawtext'] ?? $this->parse( wfMessage( $params['label'] )->plain() ); return "
\n" . $params['help'] .