- Remove pivtoModel::getSysURL.

This commit is contained in:
wangxuepeng
2023-12-07 16:58:33 +08:00
parent 3f166b551b
commit 834526fa12
-24
View File
@@ -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.
*