mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-24 16:25:52 +00:00
Hygiene: Instead of non-testable class_exists use ExtensionRegistry
Changes: - use ExtensionRegistry to check Disambiguator extension existence Change-Id: Ibb1fa899fe3b07074ef5c69911d0b7a4e09336ae
This commit is contained in:
parent
9a80069330
commit
8a3aa6fba8
|
@ -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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue