diff --git a/library/Director/Objects/IcingaCommand.php b/library/Director/Objects/IcingaCommand.php index 8563add4..e847c727 100644 --- a/library/Director/Objects/IcingaCommand.php +++ b/library/Director/Objects/IcingaCommand.php @@ -177,7 +177,7 @@ class IcingaCommand extends IcingaObject self::$pluginDir = $pluginDir; } - protected function getLegacyObjectType() + public function getLegacyObjectType() { // there is only one type of command in Icinga 1.x return 'command'; diff --git a/library/Director/Objects/IcingaObject.php b/library/Director/Objects/IcingaObject.php index c59f3107..f9c37b99 100644 --- a/library/Director/Objects/IcingaObject.php +++ b/library/Director/Objects/IcingaObject.php @@ -1955,7 +1955,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer ); } - protected function getLegacyObjectType() + public function getLegacyObjectType() { return strtolower($this->getType()); }