Corrected config set for language in parent controller

This commit is contained in:
Alex Tselegidis 2020-12-08 13:22:46 +02:00
parent 0631dbadf9
commit 0aa41d0927

View file

@ -69,13 +69,13 @@ class EA_Controller extends CI_Controller {
} }
/** /**
* Configure the language * Configure the language.
*/ */
private function configure_language() private function configure_language()
{ {
if ($this->session->has_userdata('language')) if ($this->session->has_userdata('language'))
{ {
$this->config->set_item('language'); $this->config->set_item('language', $this->session->userdata('language'));
} }
$this->lang->load('translations'); $this->lang->load('translations');