IcingaCommand: fix magic PluginDir prefix
This commit is contained in:
parent
7298092e97
commit
06f9477bc1
|
@ -43,6 +43,7 @@ class IcingaCommand extends IcingaObject
|
|||
$command = $m[2];
|
||||
} elseif ($command[0] !== '/') {
|
||||
$prefix = 'PluginDir + ';
|
||||
$command = '/' . $command;
|
||||
}
|
||||
$parts = preg_split('/\s+/', $command, -1, PREG_SPLIT_NO_EMPTY);
|
||||
array_unshift($parts, c::alreadyRendered($prefix . c::renderString(array_shift($parts))));
|
||||
|
|
Loading…
Reference in New Issue