From 00e88f8d02f51965cbd1bfa2eba35dcd5800e26f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Wed, 8 Mar 2023 10:42:29 +0800 Subject: [PATCH] Update taglist.class.php --- src/system/archive/taglist.class.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/system/archive/taglist.class.php b/src/system/archive/taglist.class.php index 750ff2aa..607b23cc 100755 --- a/src/system/archive/taglist.class.php +++ b/src/system/archive/taglist.class.php @@ -51,7 +51,7 @@ class TagList $this->TypeLink = new TypeLink(0); $this->Fields['tag'] = $keyword; if (empty($keyword)) { - $this->Fields['title'] = "TAGS列表"; + $this->Fields['title'] = "标签列表"; } $this->Fields['position'] = $cfg_cmsurl."/apps/tags.php"; $this->TempletsFile = ''; @@ -61,8 +61,7 @@ class TagList if (!empty($this->Tag)) { $this->TagInfos = $this->dsql->GetOne("SELECT * FROM `#@__tagindex` where id = '{$this->Tag}' "); if (!is_array($this->TagInfos)) { - $msg = "网站找不到该标签"; - ShowMsg($msg, "-1"); + ShowMsg('当前标签不存在,系统自动返回标签首页', 'tags.php'); exit(); } $this->Fields['title'] = empty($this->TagInfos['title']) ? $this->TagInfos['tag'] : $this->TagInfos['title'];