Store a user's preferences in a dedicated directory rather than in a single file

refs #5600
This commit is contained in:
Johannes Meyer 2015-09-07 11:20:36 +02:00
parent 4487832d5f
commit 274a0c8a09
2 changed files with 6 additions and 1 deletions

View File

@ -302,3 +302,8 @@ The first release candidate of Icinga Web 2 introduces the following non-backwar
* The **instances.ini** configuration file provided by the monitoring module
has been renamed to **commandtransports.ini**. The content and location of
the file remains unchanged.
* The location of a user's preferences has been changed from
**<config-dir>/preferences/<username>.ini** to
**<config-dir>/preferences/<username>/config.ini**.
The content of the file remains unchanged.

View File

@ -34,7 +34,7 @@ class IniStore extends PreferencesStore
protected function init()
{
$this->preferencesFile = sprintf(
'%s/%s.ini',
'%s/%s/config.ini',
$this->getStoreConfig()->location,
strtolower($this->getUser()->getUsername())
);