mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Merge pull request #2775 from Icinga/feature/iniparser-read-config-files-2766
Use parse_ini_string() where IniParser::parseIni() is not needed
This commit is contained in:
commit
a028209cbc
@ -260,6 +260,6 @@ class IniParser
|
||||
throw new NotReadableError('Couldn\'t read the file `%s\'', $path);
|
||||
}
|
||||
|
||||
return Config::fromArray(self::parseIni($content)->toArray())->setConfigFile($file);
|
||||
return Config::fromArray(parse_ini_string($content, true))->setConfigFile($file);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user