Don't require JavaScript for addHelpLink styles
And avoid wfMessage.
Followup to 376c0a13df
Bug: T45591
Change-Id: I2f02c2a4db609356ff8be30f260490d19f3226d1
This commit is contained in:
parent
887fb377d9
commit
6ab33238a2
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue