summaryrefslogtreecommitdiffstats
path: root/system/core/Lang.php
diff options
context:
space:
mode:
authorFrank Michel <office@frankmichel.com>2011-08-25 06:11:00 +0200
committerFrank Michel <office@frankmichel.com>2011-08-25 06:11:00 +0200
commit373043fef2723d7cbdd768d1930363ac6fecba68 (patch)
tree3187abc4b66e4fc8d26bc4993ea6fbb00ccb8787 /system/core/Lang.php
parent9ff6336415f3da2a81142cb23343060df6196ebe (diff)
fix for issue #292 with multiple language files
Diffstat (limited to 'system/core/Lang.php')
-rwxr-xr-xsystem/core/Lang.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/system/core/Lang.php b/system/core/Lang.php
index 5ac671838..e140a6a60 100755
--- a/system/core/Lang.php
+++ b/system/core/Lang.php
@@ -112,7 +112,7 @@ class CI_Lang {
}
- if ( ! isset($lang))
+ if ( ! isset($lang) || ! is_array($lang))
{
log_message('error', 'Language file contains no data: language/'.$idiom.'/'.$langfile);
return;
@@ -124,7 +124,7 @@ class CI_Lang {
}
$this->is_loaded[] = $langfile;
- $this->language = array_merge($this->language, $lang);
+ $this->language = $this->language + $lang;
unset($lang);
log_message('debug', 'Language file loaded: language/'.$idiom.'/'.$langfile);