* [task#116512] Load model before useing it.

This commit is contained in:
dingguodong
2024-06-12 10:21:53 +08:00
committed by caoyanyi
parent 6e0606af98
commit 3b13de68b2
+1 -1
View File
@@ -119,7 +119,7 @@ class backup extends control
$systemInfo->currentVersion = $version;
$systemInfo->versionHint = $version;
$systemInfo->latestVersion = $latestVersion;
$systemInfo->upgradeable = $version != $latestVersion && $this->system->isUpgradeable();
$systemInfo->upgradeable = $version != $latestVersion && $this->loadModel('system')->isUpgradeable();
$systemInfo->upgradeHint = $systemInfo->upgradeable ? $this->lang->system->backup->versionInfo: null;
$systemInfo->latestURL = !empty($latestVersionList[$version]->link) ? $latestVersionList[$version]->link : $this->lang->install->officeDomain;