From: Federico Leva Date: Sat, 7 Mar 2015 17:36:41 +0000 (+0100) Subject: Don't require JavaScript for addHelpLink styles X-Git-Tag: 1.31.0-rc.0~12157 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=6ab33238a24cd3aff68593cc38be2041e9696f4f;p=lhc%2Fweb%2Fwiklou.git Don't require JavaScript for addHelpLink styles And avoid wfMessage. Followup to 376c0a13df05f30367b2a89c2cac7bdab22600ed Bug: T45591 Change-Id: I2f02c2a4db609356ff8be30f260490d19f3226d1 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 33483ebaeb..aa282a793f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1406,8 +1406,8 @@ class OutputPage extends ContextSource { * @since 1.25 */ public function addHelpLink( $to, $overrideBaseUrl = false ) { - $this->addModules( 'mediawiki.helplink' ); - $text = wfMessage( 'helppage-top-gethelp' )->escaped(); + $this->addModuleStyles( 'mediawiki.helplink' ); + $text = $this->msg( 'helppage-top-gethelp' )->escaped(); if ( $overrideBaseUrl ) { $helpUrl = $to;