mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
fix lock warning
This commit is contained in:
@@ -42,9 +42,11 @@ class Debug extends CI_Controller
|
||||
// get mig version from config file
|
||||
$this->load->config('migration');
|
||||
$data['migration_config'] = $this->config->item('migration_version');
|
||||
$data['migration_lockfile'] = $this->config->item('migration_lockfile');
|
||||
$data['miglock_lifetime'] = $this->config->item('migration_lf_maxage');
|
||||
|
||||
// compare mig versions
|
||||
if ($data['migration_version'] !== $data['migration_config'] && file_exists('application/cache/.migration_running')) {
|
||||
if ($data['migration_version'] != $data['migration_config'] && file_exists($data['migration_lockfile'])) {
|
||||
$data['migration_is_uptodate'] = false;
|
||||
} else {
|
||||
$data['migration_is_uptodate'] = true;
|
||||
|
||||
Reference in New Issue
Block a user