From 3c7a9fd2851d5aaed014020400bea5d3d9f2b4fc Mon Sep 17 00:00:00 2001 From: Lufei Date: Mon, 14 Nov 2022 18:50:13 +0800 Subject: [PATCH] - Remove getLatestRelease method. --- module/install/model.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/module/install/model.php b/module/install/model.php index 4d4d302c96..230a75db1c 100644 --- a/module/install/model.php +++ b/module/install/model.php @@ -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. *