diff --git a/src/admin/makehtml_taglist_action.php b/src/admin/makehtml_taglist_action.php index 2c7cf5ac..1051f1e2 100644 --- a/src/admin/makehtml_taglist_action.php +++ b/src/admin/makehtml_taglist_action.php @@ -58,7 +58,7 @@ if (is_array($tag) && count($tag) > 0) { $ntotalpage = $dlist->TotalPage; if ($ntotalpage <= $maxpagesize) { - $dlist->MakeHtml('', ''); + $dlist->MakeHtml(); $finishType = TRUE; //生成一个TAG完成 } else { $reurl = $dlist->MakeHtml($mkpage, $maxpagesize); diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php index e0a3f31a..8e404327 100755 --- a/src/system/archive/taglist.class.php +++ b/src/system/archive/taglist.class.php @@ -160,20 +160,14 @@ class TagList global $cfg_cmspath,$cfg_tags_dir; $tagsDir = str_replace("{cmspath}",$cfg_cmspath,$cfg_tags_dir); $makeDir = empty($this->Tag) ? $this->GetTruePath().$tagsDir."/index.html" : $this->GetTruePath().$tagsDir."/".$this->Tag."/index.html"; - if (file_exists($makeDir)) { - header('HTTP/1.1 301 Moved Permanently'); - if (!empty($this->Tag)) { - header('Location:..'.$tagsDir.'/'.GetPinyin($this->Tag)."/"); - } else { - header('Location:..'.$tagsDir.'/'); - } - exit; - } if ($this->Tag != '') { $this->CountRecord(); } $this->ParseTempletsFirst(); if ($this->Tag != '') { + if ($this->PageNo == 0) { + $this->PageNo = 1; + } $this->ParseDMFields($this->PageNo, 0); } $this->dtp->Display(); @@ -503,9 +497,7 @@ class TagList return "
  • 0页".$this->TotalResult."条
  • "; } $maininfo = "
  • {$totalpage}页".$this->TotalResult."条
  • \r\n"; - //$purl = $this->GetCurUrl(); - $purl = "/a/tags/".GetPinyin($this->Tag); - //var_dump($purl); + $purl = $this->tagsDir.'/'.$this->TagInfos['id']; //获得上一页和下一页的链接 if ($this->PageNo != 1) { $prepage .= "
  • 上一页
  • \r\n";