mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 16:24:04 +02:00
parent
dc80fe59ef
commit
b005df68a2
@ -77,6 +77,9 @@ class DashboardConfig extends Config
|
|||||||
public function saveIni($filePath = null, $fileMode = 0660)
|
public function saveIni($filePath = null, $fileMode = 0660)
|
||||||
{
|
{
|
||||||
parent::saveIni($filePath, $fileMode);
|
parent::saveIni($filePath, $fileMode);
|
||||||
|
if ($filePath === null) {
|
||||||
|
$filePath = $this->configFile;
|
||||||
|
}
|
||||||
foreach (static::listConfigFilesForUser($this->user) as $file) {
|
foreach (static::listConfigFilesForUser($this->user) as $file) {
|
||||||
if ($file !== $filePath) {
|
if ($file !== $filePath) {
|
||||||
@unlink($file);
|
@unlink($file);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user