diff --git a/library/Icinga/Application/Config.php b/library/Icinga/Application/Config.php index 3c491590a..d25ec748c 100644 --- a/library/Icinga/Application/Config.php +++ b/library/Icinga/Application/Config.php @@ -472,7 +472,11 @@ class Config implements Countable, Iterator, Selectable $filename = $type . 's.ini'; } - return static::resolvePath(($username ? "preferences/$username/" : 'navigation/') . $filename); + return static::resolvePath( + ($username ? 'preferences' . DIRECTORY_SEPARATOR . $username : 'navigation') + . DIRECTORY_SEPARATOR + . $filename + ); } /**