mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
IniStore::load(): use IniParser::parseIniFile() instead of parse_ini_file()
refs #10150
This commit is contained in:
parent
8dc9928cb3
commit
812545c04b
@ -8,6 +8,7 @@ use Icinga\Exception\NotReadableError;
|
|||||||
use Icinga\Exception\NotWritableError;
|
use Icinga\Exception\NotWritableError;
|
||||||
use Icinga\User\Preferences;
|
use Icinga\User\Preferences;
|
||||||
use Icinga\User\Preferences\PreferencesStore;
|
use Icinga\User\Preferences\PreferencesStore;
|
||||||
|
use Icinga\File\Ini\IniParser;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load and save user preferences from and to INI files
|
* Load and save user preferences from and to INI files
|
||||||
@ -57,7 +58,7 @@ class IniStore extends PreferencesStore
|
|||||||
$this->getUser()->getUsername()
|
$this->getUser()->getUsername()
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
$this->preferences = parse_ini_file($this->preferencesFile, true);
|
$this->preferences = IniParser::parseIniFile($this->preferencesFile)->toArray();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user