From 666bbc8adf34d453f04ab7abb3d5842fe74f6ea2 Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sun, 11 Jun 2017 21:31:36 +0200 Subject: [PATCH] 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 --- includes/specialpage/SpecialPage.php | 4 ++++ 1 file changed, 4 insertions(+) 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' ); -- 2.20.1