* fix for ajaxupdatefile.

This commit is contained in:
wangyidong
2017-08-21 14:46:05 +08:00
parent def8ddc634
commit 975a6ba2b9
+1
View File
@@ -1730,6 +1730,7 @@ class upgradeModel extends model
*/
public function checkSafeFile()
{
if($this->app->getModuleName() == 'upgrade' and $this->app->getMethodName() == 'ajaxupdatefile') return true;
$statusFile = $this->app->getAppRoot() . 'www' . DIRECTORY_SEPARATOR . 'ok.txt';
return (!file_exists($statusFile) or (time() - filemtime($statusFile)) > 3600) ? $statusFile : false;
}