mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
parent
07913238b3
commit
ea9bc6cebd
@ -475,9 +475,10 @@ class Config implements Countable, Iterator, Selectable
|
|||||||
if ($username) {
|
if ($username) {
|
||||||
$path = static::resolvePath(implode(DIRECTORY_SEPARATOR, array('preferences', $username, $filename)));
|
$path = static::resolvePath(implode(DIRECTORY_SEPARATOR, array('preferences', $username, $filename)));
|
||||||
if (realpath($path) === false) {
|
if (realpath($path) === false) {
|
||||||
$path = static::resolvePath(implode(DIRECTORY_SEPARATOR, array(
|
$path = static::resolvePath(implode(
|
||||||
'preferences', strtolower($username), $filename
|
DIRECTORY_SEPARATOR,
|
||||||
)));
|
array('preferences', strtolower($username), $filename)
|
||||||
|
));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$path = static::resolvePath('navigation' . DIRECTORY_SEPARATOR . $filename);
|
$path = static::resolvePath('navigation' . DIRECTORY_SEPARATOR . $filename);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user