* change http to https.
This commit is contained in:
@@ -60,10 +60,10 @@ class installModel extends model
|
||||
public function getLatestRelease()
|
||||
{
|
||||
if(!function_exists('json_decode')) return false;
|
||||
$snoopy = $this->app->loadClass('snoopy');
|
||||
if(@$snoopy->fetchText('http://www.zentao.net/misc-getlatestrelease.json'))
|
||||
$result = common::http('http://www.zentao.net/misc-getlatestrelease.json');
|
||||
if($result)
|
||||
{
|
||||
$result = json_decode($snoopy->results);
|
||||
$result = json_decode($result);
|
||||
if(isset($result->release) and $this->config->version != $result->release->version)
|
||||
{
|
||||
return $result->release;
|
||||
|
||||
Reference in New Issue
Block a user