[eluser]osci[/eluser]
[quote author="osci" date="1305399319"]After updating to latest version for multilanguage sites i came across this issue
I was loading lang files after having done a modules::run
so the last fetch_module() would return the last activated module and that resulted in language file not found error
I reverted line 38 in MX_Lang.php
from
Code:
public function load($langfile, $lang = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '') {
to
Code:
public function load($langfile, $lang = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '',$_module = NULL) {
and line 51 in MX_Lang.php
from
Code:
$_module = CI::$APP->router->fetch_module();
to
Code:
$_module OR $_module = CI::$APP->router->fetch_module();
and it did the trick.
with current code i have to write
Code:
$this->load->language('module_name/filename', $language)
instead of
Code:
$this->load->language('filename', $language)
?
Are there any issues/reasons that made the change in MX_Lang.php?[/quote]
I know I've been bugging you a little lately wiredesignz.
Any reason for the above modifications? Were there any problems and you changed code?