From 834526fa122b716bb368737cfb2bd4b87559aeee Mon Sep 17 00:00:00 2001 From: wangxuepeng Date: Thu, 7 Dec 2023 16:58:28 +0800 Subject: [PATCH] - Remove pivtoModel::getSysURL. --- module/pivot/model.php | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/module/pivot/model.php b/module/pivot/model.php index fb3bbcc056..c7c74c195d 100644 --- a/module/pivot/model.php +++ b/module/pivot/model.php @@ -661,30 +661,6 @@ class pivotModel extends model return $bugs; } - /** - * Get System URL. - * - * @access public - * @return void - */ - public function getSysURL() - { - if(isset($this->config->mail->domain)) return $this->config->mail->domain; - - /* Ger URL when run in shell. */ - if(PHP_SAPI == 'cli') - { - $url = parse_url(trim($this->server->argv[1])); - $port = (empty($url['port']) or $url['port'] == 80) ? '' : $url['port']; - $host = empty($port) ? $url['host'] : $url['host'] . ':' . $port; - return $url['scheme'] . '://' . $host; - } - else - { - return common::getSysURL(); - } - } - /** * Get user bugs. *