diff --git a/includes/FooterHooks.php b/includes/FooterHooks.php index b3ca93c9..fae595f6 100644 --- a/includes/FooterHooks.php +++ b/includes/FooterHooks.php @@ -8,6 +8,7 @@ use ResourceLoader; use Skin; use ConfigFactory; use User; +use DisambiguatorHooks; class FooterHooks { @@ -52,6 +53,10 @@ class FooterHooks { * @return boolean Always true */ public static function onBeforePageDisplay( OutputPage $out, Skin $skin ) { + if ( class_exists( 'DisambiguatorHooks' ) && + DisambiguatorHooks::isDisambiguationPage( $out->getTitle() ) ) { + return true; + } $config = ConfigFactory::getDefaultInstance()->makeConfig( 'RelatedArticles' ); $showReadMore = $config->get( 'RelatedArticlesShowInFooter' );