From: Fomafix Date: Sun, 11 Jun 2017 19:31:36 +0000 (+0200) Subject: Disable addHelpLink when including special pages X-Git-Tag: 1.31.0-rc.0~2996^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=666bbc8adf34d453f04ab7abb3d5842fe74f6ea2;p=lhc%2Fweb%2Fwiklou.git Disable addHelpLink when including special pages The help link does not make sence on includes special pages and is not shown. But the style module 'mediawiki.helplink' is still loaded. This change disables the loading of the module 'mediawiki.helplink' for included special pages. Change-Id: I8115dc2e46f3498441c30caede4648d387d55d5d --- diff --git a/includes/specialpage/SpecialPage.php b/includes/specialpage/SpecialPage.php index ba58e924ac..e861afe597 100644 --- a/includes/specialpage/SpecialPage.php +++ b/includes/specialpage/SpecialPage.php @@ -783,6 +783,10 @@ class SpecialPage { * @since 1.25 */ public function addHelpLink( $to, $overrideBaseUrl = false ) { + if ( $this->including() ) { + return; + } + global $wgContLang; $msg = $this->msg( $wgContLang->lc( $this->getName() ) . '-helppage' );