![]() |
unable to _return_ language strings after already loaded - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: unable to _return_ language strings after already loaded (/showthread.php?tid=3959) |
unable to _return_ language strings after already loaded - El Forum - 10-30-2007 [eluser]coolfactor[/eluser] Applies to CI v1.5.4 Once a language file has been loaded, the CI_Language::load() function will no longer honor the $return parameter to simply return the language strings. Lines 56-59 of CI_Language::load(): Code: if (in_array($langfile, $this->is_loaded, TRUE)) That code should also check the $return parameter rather than just halting. Reproducible steps: 1. Load a language file normally. Code: $this->lang->load('some_category', 'german'); 2. Attempt to get the values stored in the same language file: Code: $some_strings = $this->lang->load('some_category', 'german', TRUE); The TRUE would no longer be honored since the file had already been loaded once. |