mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 14:42:23 +03:00
Fixed the translation issue with the installation page.
This commit is contained in:
parent
6adf0abf8d
commit
b86c850b88
2 changed files with 10 additions and 4 deletions
|
@ -26,6 +26,15 @@ class Installation extends CI_Controller {
|
|||
public function __construct() {
|
||||
parent::__construct();
|
||||
$this->load->helper('installation');
|
||||
$this->load->library('session');
|
||||
|
||||
// Set user's selected language.
|
||||
if ($this->session->userdata('language')) {
|
||||
$this->config->set_item('language', $this->session->userdata('language'));
|
||||
$this->lang->load('translations', $this->session->userdata('language'));
|
||||
} else {
|
||||
$this->lang->load('translations', $this->config->item('language')); // default
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -93,9 +102,6 @@ class Installation extends CI_Controller {
|
|||
));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* End of file installation.php */
|
||||
|
|
|
@ -28,7 +28,7 @@ $(document).ready(function() {
|
|||
$('#install').click(function() {
|
||||
if (!validate()) return;
|
||||
|
||||
var postUrl = GlobalVariables.baseUrl + '/index.php/appointments/ajax_install';
|
||||
var postUrl = GlobalVariables.baseUrl + '/index.php/installation/ajax_install';
|
||||
var postData = {
|
||||
'csrfToken': GlobalVariables.csrfToken,
|
||||
'admin': JSON.stringify(getAdminData()),
|
||||
|
|
Loading…
Reference in a new issue