IcingadbSupportHook: Rename missing method call

Rename `isSetAsBackend()` to `isIcingaDbSetAsPreferredBackend()`
This commit is contained in:
Sukhwinder Dhillon 2021-11-12 11:05:57 +01:00 committed by Johannes Meyer
parent 003d60033f
commit 4f156b76dc

View file

@ -47,6 +47,7 @@ abstract class IcingadbSupportHook
*/
final public static function useIcingaDbAsBackend(): bool
{
return ! Icinga::app()->getModuleManager()->hasEnabled('monitoring') || self::isSetAsBackend();
return ! Icinga::app()->getModuleManager()->hasEnabled('monitoring')
|| self::isIcingaDbSetAsPreferredBackend();
}
}