This commit is contained in:
hufangzhou
2021-10-18 16:27:36 +08:00
parent 352ec4d0b4
commit 5691e39633
+4 -2
View File
@@ -675,8 +675,10 @@ class upgrade extends control
{
$this->loadModel('setting')->updateVersion($this->config->version);
@unlink($this->app->getAppRoot() . 'www/install.php');
@unlink($this->app->getAppRoot() . 'www/upgrade.php');
$installPath = $this->app->getAppRoot() . 'www/install.php';
$upgradePath = $this->app->getAppRoot() . 'www/upgrade.php';
if(file_exists($installPath)) @unlink($installPath);
if(file_exists($upgradePath)) @unlink($upgradePath);
unset($_SESSION['upgrading']);
}
}