1
0
Fork 0

bugfixing ini-loading

This commit is contained in:
Philipp Holzer 2019-02-05 23:47:40 +01:00
parent 62c79e1c4f
commit 3cd654e76f
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -108,15 +108,13 @@ class ConfigCacheLoader
* Tries to load the specified legacy configuration file and returns the config array. * Tries to load the specified legacy configuration file and returns the config array.
* *
* @deprecated since version 2018.12 * @deprecated since version 2018.12
* @param string $filename * @param string $filepath
* *
* @return array The configuration array * @return array The configuration array
* @throws \Exception * @throws \Exception
*/ */
public function loadINIConfigFile($filename) public function loadINIConfigFile($filepath)
{ {
$filepath = $this->configDir . DIRECTORY_SEPARATOR . $filename . ".ini.php";
if (!file_exists($filepath)) { if (!file_exists($filepath)) {
throw new \Exception('Error parsing non-existent INI config file ' . $filepath); throw new \Exception('Error parsing non-existent INI config file ' . $filepath);
} }