change news link

This commit is contained in:
jack 2018-02-02 17:40:02 +08:00
parent 54dfe7a9fe
commit fd6d32848c
1 changed files with 2 additions and 1 deletions

View File

@ -509,7 +509,8 @@ class Archive
*/
public function makeArchiveUrl($parts)
{
$http_host = "http://".$_SERVER ['HTTP_HOST'];
// $http_host = "http://".$_SERVER ['HTTP_HOST'];
$http_host = "";
$controller = "archives";
$url = $http_host."/".$controller."/".$parts['ptype']."/".$parts['type_code']."/archive-".$parts['archive_id'].".html";
//$url = $http_host."/".$controller."/".$parts['type_code']."/".$parts['archive_id'];