Let the system work without mailer configs

This commit is contained in:
Dmitriy Simushev 2014-12-17 10:46:42 +00:00
parent 062a4c1090
commit bc14d1f0ef

View File

@ -33,6 +33,9 @@ function load_system_configs()
if (is_null($configs)) {
$parser = new YamlParser();
$configs = $parser->parse(file_get_contents(MIBEW_FS_ROOT . '/configs/config.yml'));
// Mailer configs are not necessary and can be omited but the section
// must exist anyway.
$configs += array('mailer' => array());
}
return $configs;