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('user_model');
|
||||
|
||||
if($this->optionslib->get_option('version2_trigger') == "false") {
|
||||
redirect('welcome');
|
||||
}
|
||||
|
||||
// Check if users logged in
|
||||
|
||||
if($this->user_model->validate_session() == 0) {
|
||||
|
|
|
@ -39,7 +39,7 @@ class Welcome extends CI_Controller {
|
|||
$this->load->view('interface_assets/footer');
|
||||
} else {
|
||||
$data['NoMigrationRequired'] = false;
|
||||
$this->optionslib->update('version2_trigger', "true");
|
||||
$this->optionslib->update('version2_trigger', "true", "yes");
|
||||
redirect('dashboard');
|
||||
}
|
||||
} else {
|
||||
|
|
|
@ -37,7 +37,6 @@ class OptionsLib {
|
|||
} else {
|
||||
$CI->config->set_item('option_'.$item->option_name, $item->option_value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue