Don't require JavaScript for addHelpLink styles

And avoid wfMessage.
Followup to 376c0a13df

Bug: T45591
Change-Id: I2f02c2a4db609356ff8be30f260490d19f3226d1
This commit is contained in:
Federico Leva 2015-03-07 18:36:41 +01:00
parent 887fb377d9
commit 6ab33238a2

View 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;