Merge branch 'sprint/remove-getLatestRelease' into 'master'
- Remove getLatestRelease method. See merge request easycorp/zentaopms!6143
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user