Fix database config parser
This commit is contained in:
@@ -60,7 +60,12 @@ class HRCCommand extends Command
|
|||||||
|
|
||||||
private function getCoreConfig($name)
|
private function getCoreConfig($name)
|
||||||
{
|
{
|
||||||
$config = parse_ini_file(mb_strtolower(file_get_contents(CORE_PATH . '/../../db.ini')));
|
$config = parse_ini_file(CORE_PATH . '/../../db.ini');
|
||||||
|
|
||||||
|
$config = array_map(function($value) {
|
||||||
|
return mb_strtolower($value);
|
||||||
|
}, $config);
|
||||||
|
|
||||||
return $config[$name];
|
return $config[$name];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user