Use ExtensionRegistry to detect whether Echo is installed
Change-Id: I7816983c132c45653666b294fec2ee64fac94944
This commit is contained in:
parent
8bd72dc871
commit
3917d74778
|
@ -347,7 +347,7 @@ class SkinMinerva extends SkinTemplate implements ICustomizableSkin {
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
protected function useEcho() {
|
protected function useEcho() {
|
||||||
return class_exists( 'MWEchoNotifUser' );
|
return ExtensionRegistry::getInstance()->isLoaded( 'Echo' );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue