Don't require JavaScript for addHelpLink styles
authorFederico Leva <federicoleva@tiscali.it>
Sat, 7 Mar 2015 17:36:41 +0000 (18:36 +0100)
committerFederico Leva <federicoleva@tiscali.it>
Sat, 7 Mar 2015 17:59:35 +0000 (18:59 +0100)
And avoid wfMessage.
Followup to 376c0a13df05f30367b2a89c2cac7bdab22600ed

Bug: T45591
Change-Id: I2f02c2a4db609356ff8be30f260490d19f3226d1

includes/OutputPage.php

index 33483eb..aa282a7 100644 (file)
@@ -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;