Use ExtensionRegistry to detect whether Echo is installed

Change-Id: I7816983c132c45653666b294fec2ee64fac94944
This commit is contained in:
Kunal Mehta 2018-04-15 16:55:36 -07:00 committed by Jdlrobson
parent 8bd72dc871
commit 3917d74778

View file

@ -347,7 +347,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
* @return bool
*/
protected function useEcho() {
return class_exists( 'MWEchoNotifUser' );
return ExtensionRegistry::getInstance()->isLoaded( 'Echo' );
}
/**