[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))
{
return;
}
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.