mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
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];
|
$command = $m[2];
|
||||||
} elseif ($command[0] !== '/') {
|
} elseif ($command[0] !== '/') {
|
||||||
$prefix = 'PluginDir + ';
|
$prefix = 'PluginDir + ';
|
||||||
|
$command = '/' . $command;
|
||||||
}
|
}
|
||||||
$parts = preg_split('/\s+/', $command, -1, PREG_SPLIT_NO_EMPTY);
|
$parts = preg_split('/\s+/', $command, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
array_unshift($parts, c::alreadyRendered($prefix . c::renderString(array_shift($parts))));
|
array_unshift($parts, c::alreadyRendered($prefix . c::renderString(array_shift($parts))));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user