Version 0.9.5 beta - update for the autoloading and a bugfix for the registry, also the dispatcher checks for the file before loading now.

This commit is contained in:
Stephan Kasdorf
2020-01-06 11:32:33 +01:00
parent 18344ebb8f
commit 12288f52df
3 changed files with 47 additions and 29 deletions

View File

@@ -70,11 +70,14 @@ final class Registry
{
$module = new \stdClass();
$module_settings = parse_ini_file($settings->getPathName(), true);
foreach ( $module_settings[strtoupper($this->getModuleName())] as $key=>$value)
if(array_key_exists(strtoupper($this->getModuleName()), $module_settings))
{
$module->$key = $value;
foreach ($module_settings[strtoupper($this->getModuleName())] as $key=>$value)
{
$module->$key = $value;
}
$this->_modules_config[$this->getModuleName()] = $module;
}
$this->_modules_config[$this->getModuleName()] = $module;
}
}
}