From 6ab33238a24cd3aff68593cc38be2041e9696f4f Mon Sep 17 00:00:00 2001 From: Federico Leva Date: Sat, 7 Mar 2015 18:36:41 +0100 Subject: [PATCH] Don't require JavaScript for addHelpLink styles And avoid wfMessage. Followup to 376c0a13df05f30367b2a89c2cac7bdab22600ed Bug: T45591 Change-Id: I2f02c2a4db609356ff8be30f260490d19f3226d1 --- includes/OutputPage.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1