added check from input params in method init()

This commit is contained in:
Vyacheslav Agafonov
2011-11-28 20:24:20 +04:00
parent 0552c15141
commit b7e71c20b7
2 changed files with 12 additions and 7 deletions

View File

@ -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'])) {