commit | 7a829720e3116f3e132e543d91f4fe32ab2b895c | [log] [tgz] |
---|---|---|
author | Andrey Andreev <narf@devilix.net> | Sun Jan 11 04:37:46 2015 +0200 |
committer | Andrey Andreev <narf@devilix.net> | Sun Jan 11 04:37:46 2015 +0200 |
tree | 87bae5a43192e21af09d0e1c64f6cec1fb9a3d79 | |
parent | 6e3d68e381f011614f3b78eb755f62951078e327 [diff] [blame] |
Fix #3464
diff --git a/system/core/Lang.php b/system/core/Lang.php index c747290..fe1dc1a 100644 --- a/system/core/Lang.php +++ b/system/core/Lang.php
@@ -106,7 +106,7 @@ $langfile .= '.php'; - if (empty($idiom) OR ! preg_match('/^[a-z_-]$/i', $idiom)) + if (empty($idiom) OR ! preg_match('/^[a-z_-]+$/i', $idiom)) { $config =& get_config(); $idiom = empty($config['language']) ? 'english' : $config['language'];