mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
50c67ceda2
commit
e639790d52
@ -322,7 +322,7 @@ class ObjectCommand extends Command
|
||||
protected function load($name)
|
||||
{
|
||||
return IcingaObject::loadByType(
|
||||
lcfirst($this->getType()),
|
||||
$this->getType(),
|
||||
$name,
|
||||
$this->db()
|
||||
);
|
||||
|
@ -1705,7 +1705,7 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
|
||||
protected static function classByType($type)
|
||||
{
|
||||
// allow for icinga_host and host
|
||||
$type = preg_replace('/^icinga_/', '', $type);
|
||||
$type = lcfirst(preg_replace('/^icinga_/', '', $type));
|
||||
|
||||
if (strpos($type, 'data') === false) {
|
||||
$prefix = 'Icinga';
|
||||
|
Loading…
x
Reference in New Issue
Block a user