* [refac] Skip the confirm sql page when upgrading.

This commit is contained in:
liugang
2026-01-08 10:08:18 +08:00
parent 0ebc4db7d6
commit 6b33be2164
+2 -1
View File
@@ -112,7 +112,8 @@ class upgrade extends control
if(empty($this->config->upgrade->fromVersion)) $this->setting->setItem('system.upgrade.fromVersion', $this->post->fromVersion);
$fromVersion = $this->config->upgrade->fromVersion ?? $this->post->fromVersion;
$this->locate(inlink('confirm', "fromVersion={$fromVersion}"));
if(strpos($fromVersion, 'lite') !== false) $fromVersion = $this->config->upgrade->liteVersion[$fromVersion];
$this->locate(inlink('execute', "fromVersion={$fromVersion}"));
}
$this->view->title = $this->lang->upgrade->common . $this->lang->hyphen . $this->lang->upgrade->selectVersion;