From fd6d32848c08649705f1f4d43c944293a35db7bd Mon Sep 17 00:00:00 2001 From: jack Date: Fri, 2 Feb 2018 17:40:02 +0800 Subject: [PATCH] change news link --- application/models/Archive.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/models/Archive.php b/application/models/Archive.php index f2f2e087..a5bcf245 100644 --- a/application/models/Archive.php +++ b/application/models/Archive.php @@ -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'];