Conform to coding guidelines

refs #11051
This commit is contained in:
Alexander A. Klimov 2016-02-11 13:29:00 +01:00
parent 07913238b3
commit ea9bc6cebd

View File

@ -475,9 +475,10 @@ class Config implements Countable, Iterator, Selectable
if ($username) {
$path = static::resolvePath(implode(DIRECTORY_SEPARATOR, array('preferences', $username, $filename)));
if (realpath($path) === false) {
$path = static::resolvePath(implode(DIRECTORY_SEPARATOR, array(
'preferences', strtolower($username), $filename
)));
$path = static::resolvePath(implode(
DIRECTORY_SEPARATOR,
array('preferences', strtolower($username), $filename)
));
}
} else {
$path = static::resolvePath('navigation' . DIRECTORY_SEPARATOR . $filename);