IcingaCommand: fix magic PluginDir prefix

This commit is contained in:
Thomas Gelf 2015-10-28 22:28:43 +01:00
parent 7298092e97
commit 06f9477bc1
1 changed files with 1 additions and 0 deletions

View File

@ -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))));