diff options
author | Andrey Andreev <narf@devilix.net> | 2014-11-07 11:17:50 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2014-11-07 11:17:50 +0100 |
commit | d8e31ec82d4f25378d6032df81fc5e9af5de5738 (patch) | |
tree | 43dbc0f2ae258e5cb38e5e44ce7a5b20eae8f9b5 | |
parent | e9c7b72fa0eb66852cc7b298c057cd36f0f3f0c7 (diff) |
Simplify CI_Loader::lang() following #3316
-rw-r--r-- | system/core/Loader.php | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 5b119854b..e0a7d5e1b 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -634,14 +634,7 @@ class CI_Loader { */ public function language($files, $lang = '') { - $LNG =& get_instance()->lang; - is_array($files) OR $files = array($files); - - foreach ($files as $langfile) - { - $LNG->load($langfile, $lang); - } - + get_instance()->lang->load($files, $lang); return $this; } |