bugfixing ini-loading
This commit is contained in:
parent
62c79e1c4f
commit
3cd654e76f
1 changed files with 2 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue