added check from input params in method init()
This commit is contained in:
@ -28,7 +28,11 @@ class I18N
|
||||
static public function init()
|
||||
{
|
||||
$config = Config::get(__CLASS__);
|
||||
|
||||
|
||||
if (!is_array($config['locales'])) {
|
||||
throw new InitializationException('locales empty');
|
||||
}
|
||||
|
||||
self::$locales = $config['locales'];
|
||||
|
||||
if (isset($config['bidi'])) {
|
||||
|
Reference in New Issue
Block a user