IcingaObject(Legacy): Make getLegacyObjectType public

refs #12919
This commit is contained in:
Markus Frosch 2016-10-14 11:07:37 +02:00
parent ffa5da86c9
commit a8179507dc
2 changed files with 2 additions and 2 deletions

View File

@ -177,7 +177,7 @@ class IcingaCommand extends IcingaObject
self::$pluginDir = $pluginDir; self::$pluginDir = $pluginDir;
} }
protected function getLegacyObjectType() public function getLegacyObjectType()
{ {
// there is only one type of command in Icinga 1.x // there is only one type of command in Icinga 1.x
return 'command'; return 'command';

View File

@ -1955,7 +1955,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
); );
} }
protected function getLegacyObjectType() public function getLegacyObjectType()
{ {
return strtolower($this->getType()); return strtolower($this->getType());
} }