mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-29 11:23:10 +03:00
Customers weren't able to change the application language in frontend.
This commit is contained in:
parent
1212cd51f3
commit
cdde2fb501
1 changed files with 4 additions and 1 deletions
|
@ -41,7 +41,10 @@ class Backend_api extends CI_Controller {
|
||||||
|
|
||||||
$this->load->library('session');
|
$this->load->library('session');
|
||||||
$this->load->model('roles_model');
|
$this->load->model('roles_model');
|
||||||
$this->privileges = $this->roles_model->get_privileges($this->session->userdata('role_slug'));
|
|
||||||
|
if ($this->session->userdata('role_slug')) {
|
||||||
|
$this->privileges = $this->roles_model->get_privileges($this->session->userdata('role_slug'));
|
||||||
|
}
|
||||||
|
|
||||||
// Set user's selected language.
|
// Set user's selected language.
|
||||||
if ($this->session->userdata('language')) {
|
if ($this->session->userdata('language')) {
|
||||||
|
|
Loading…
Reference in a new issue