summaryrefslogtreecommitdiffstats
path: root/system/core/Lang.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-01-11 03:37:46 +0100
committerAndrey Andreev <narf@devilix.net>2015-01-11 03:37:46 +0100
commit7a829720e3116f3e132e543d91f4fe32ab2b895c (patch)
tree87bae5a43192e21af09d0e1c64f6cec1fb9a3d79 /system/core/Lang.php
parent6e3d68e381f011614f3b78eb755f62951078e327 (diff)
Fix #3464
Diffstat (limited to 'system/core/Lang.php')
-rw-r--r--system/core/Lang.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/core/Lang.php b/system/core/Lang.php
index c74729035..fe1dc1a9d 100644
--- a/system/core/Lang.php
+++ b/system/core/Lang.php
@@ -106,7 +106,7 @@ class CI_Lang {
$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'];