From 8a3aa6fba857452c42ac2434fec0cddcd97f7984 Mon Sep 17 00:00:00 2001 From: Piotr Miazga Date: Tue, 31 Jan 2017 00:05:19 +0100 Subject: [PATCH] Hygiene: Instead of non-testable class_exists use ExtensionRegistry Changes: - use ExtensionRegistry to check Disambiguator extension existence Change-Id: Ibb1fa899fe3b07074ef5c69911d0b7a4e09336ae --- includes/FooterHooks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/FooterHooks.php b/includes/FooterHooks.php index 08edb170..cb9f456a 100644 --- a/includes/FooterHooks.php +++ b/includes/FooterHooks.php @@ -45,7 +45,7 @@ class FooterHooks { * @return boolean */ private static function isDisambiguationPage( Title $title ) { - return class_exists( 'DisambiguatorHooks' ) && + return \ExtensionRegistry::getInstance()->isLoaded( 'Disambiguator' ) && DisambiguatorHooks::isDisambiguationPage( $title ); }