diff options
author | Gabriel Potkány <gadelat@gmail.com> | 2014-11-06 11:35:46 +0100 |
---|---|---|
committer | Gabriel Potkány <gadelat@gmail.com> | 2014-11-06 11:35:46 +0100 |
commit | 0e924ceed7a71ac343e929270f3e529ecf85f2a5 (patch) | |
tree | 0d72d665b11df2b92030d8c3873424a3c53d87aa /system | |
parent | da20a575f893f7ff45dc047ba928e233557f70b9 (diff) |
Ability to pass array of language files to Language Library similar to Loader Library
Diffstat (limited to 'system')
-rw-r--r-- | system/core/Lang.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/system/core/Lang.php b/system/core/Lang.php index 25d0af1ff..cac73c2e1 100644 --- a/system/core/Lang.php +++ b/system/core/Lang.php @@ -87,6 +87,14 @@ class CI_Lang { */ public function load($langfile, $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '') { + if (is_array($langfile)) + { + foreach ($langfile as $value) + { + return $this->load($value, $idiom, $return, $add_suffix, $alt_path); + } + } + $langfile = str_replace('.php', '', $langfile); if ($add_suffix === TRUE) |