From bbd68457aed4c0ca0040005e5aaa6fad8841bafc Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 30 Sep 2015 11:41:49 +0200 Subject: [PATCH] Config: Use DIRECTORY_SEPARATOR in static method navigation() refs #10246 --- library/Icinga/Application/Config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 + ); } /**