- Remove getLatestRelease method.

This commit is contained in:
Lufei
2022-11-14 18:50:13 +08:00
parent 800414d03c
commit 3c7a9fd285
-18
View File
@@ -51,24 +51,6 @@ class installModel extends model
return PHP_VERSION;
}
/**
* Get latest release.
*
* @access public
* @return string or bool
*/
public function getLatestRelease()
{
if(!function_exists('json_decode')) return false;
$result = file_get_contents('https://www.zentao.net/misc-getlatestrelease.json');
if($result)
{
$result = json_decode($result);
if(isset($result->release) and $this->config->version != $result->release->version) return $result->release;
}
return false;
}
/**
* Check php version.
*