Ability to pass array of language files to Language Library similar to Loader Library
diff --git a/system/core/Lang.php b/system/core/Lang.php
index 25d0af1..cac73c2 100644
--- a/system/core/Lang.php
+++ b/system/core/Lang.php
@@ -87,6 +87,14 @@
*/
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)