kopia lustrzana https://github.com/magicbug/Cloudlog
Hopefully now works correctly
rodzic
8bbc0ba9bc
commit
c0f812baeb
|
@ -13,6 +13,10 @@ class Dashboard extends CI_Controller {
|
||||||
$this->load->model('logbook_model');
|
$this->load->model('logbook_model');
|
||||||
$this->load->model('user_model');
|
$this->load->model('user_model');
|
||||||
|
|
||||||
|
if($this->optionslib->get_option('version2_trigger') == "false") {
|
||||||
|
redirect('welcome');
|
||||||
|
}
|
||||||
|
|
||||||
// Check if users logged in
|
// Check if users logged in
|
||||||
|
|
||||||
if($this->user_model->validate_session() == 0) {
|
if($this->user_model->validate_session() == 0) {
|
||||||
|
|
|
@ -39,7 +39,7 @@ class Welcome extends CI_Controller {
|
||||||
$this->load->view('interface_assets/footer');
|
$this->load->view('interface_assets/footer');
|
||||||
} else {
|
} else {
|
||||||
$data['NoMigrationRequired'] = false;
|
$data['NoMigrationRequired'] = false;
|
||||||
$this->optionslib->update('version2_trigger', "true");
|
$this->optionslib->update('version2_trigger', "true", "yes");
|
||||||
redirect('dashboard');
|
redirect('dashboard');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -37,7 +37,6 @@ class OptionsLib {
|
||||||
} else {
|
} else {
|
||||||
$CI->config->set_item('option_'.$item->option_name, $item->option_value);
|
$CI->config->set_item('option_'.$item->option_name, $item->option_value);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue