* Add codes to control if it can be upgraded automatically or has a valid safe file.

This commit is contained in:
dingguodong
2023-12-26 08:48:31 +08:00
committed by tanghucheng
parent 74cc2a1c67
commit a57aaed716
3 changed files with 25 additions and 1 deletions
+2
View File
@@ -2474,6 +2474,8 @@ EOF;
{
if($this->app->isContainer()) return false;
if($this->app->hasValidSafeFile()) return false;
if($this->app->getModuleName() == 'upgrade' and $this->session->upgrading) return false;
$statusFile = $this->app->getAppRoot() . 'www' . DIRECTORY_SEPARATOR . 'data' . DIRECTORY_SEPARATOR . 'ok.txt';