update type links

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

View File

@ -519,7 +519,8 @@ class Archive
public function makeCategoryUrl($parts) public function makeCategoryUrl($parts)
{ {
$http_host = "http://".$_SERVER ['HTTP_HOST']; // $http_host = "http://".$_SERVER ['HTTP_HOST'];
$http_host = "";
$controller = "archives"; $controller = "archives";
$url = $http_host."/".$controller."/".$parts['ptype']."/".$parts['type_code'].""; $url = $http_host."/".$controller."/".$parts['ptype']."/".$parts['type_code']."";
return $url; return $url;