From 744620c170393226d09c8045948e6243ab37e39d 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?=
<2449271624@qq.com>
Date: Thu, 28 Dec 2023 19:03:17 +0800
Subject: [PATCH] =?UTF-8?q?taglist.htm=E4=B8=BAtag=5Flist.htm?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/admin/makehtml_taglist.php | 2 +-
src/admin/makehtml_taglist_action.php | 2 +-
.../templets/{makehtml_taglist.htm => makehtml_tag_list.htm} | 2 +-
src/apps/tags.php | 2 +-
src/system/archive/searchview.class.php | 2 +-
src/system/helpers/channelunit.helper.php | 2 +-
src/system/taglib/arclist.lib.php | 2 +-
src/theme/dedebiz/{taglist.htm => tag_list.htm} | 0
src/theme/templet-filelist.inc | 2 +-
9 files changed, 8 insertions(+), 8 deletions(-)
rename src/admin/templets/{makehtml_taglist.htm => makehtml_tag_list.htm} (98%)
rename src/theme/dedebiz/{taglist.htm => tag_list.htm} (100%)
diff --git a/src/admin/makehtml_taglist.php b/src/admin/makehtml_taglist.php
index de13dfad..ce57a7a9 100644
--- a/src/admin/makehtml_taglist.php
+++ b/src/admin/makehtml_taglist.php
@@ -35,5 +35,5 @@ if ($action == "search") {
echo json_encode($result);
exit;
}
-include DedeInclude('templets/makehtml_taglist.htm');
+include DedeInclude('templets/makehtml_tag_list.htm');
?>
\ No newline at end of file
diff --git a/src/admin/makehtml_taglist_action.php b/src/admin/makehtml_taglist_action.php
index c4e02a2f..6f593fb7 100644
--- a/src/admin/makehtml_taglist_action.php
+++ b/src/admin/makehtml_taglist_action.php
@@ -53,7 +53,7 @@ $tag = $dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE id='$ctagid' LIMIT 0,1;
$tagsDir = str_replace("{cmspath}", "", $cfg_tags_dir);
MkdirAll($cfg_basedir.$tagsDir, $cfg_dir_purview);
if (is_array($tag) && count($tag) > 0) {
- $dlist = new TagList($tag['id'], 'taglist.htm');
+ $dlist = new TagList($tag['id'], 'tag_list.htm');
$dlist->CountRecord();
$dlist->SetTagsDir($tagsdir);
$ntotalpage = $dlist->TotalPage;
diff --git a/src/admin/templets/makehtml_taglist.htm b/src/admin/templets/makehtml_tag_list.htm
similarity index 98%
rename from src/admin/templets/makehtml_taglist.htm
rename to src/admin/templets/makehtml_tag_list.htm
index 40c1f446..51bed292 100644
--- a/src/admin/templets/makehtml_taglist.htm
+++ b/src/admin/templets/makehtml_tag_list.htm
@@ -16,7 +16,7 @@
- 生成静态文件后,浏览动态文件则直接跳转静态文件,如果需要动态浏览,删除对应文件即可。标签首页模板://tag.htm 标签列表页模板://taglist.htm
+ 生成静态文件后,浏览动态文件则直接跳转静态文件,如果需要动态浏览,删除对应文件即可。标签首页模板://tag.htm 标签列表页模板://tag_list.htm
|
0) {$row = $dsql->GetOne("SELECT tag FROM `#@__tagindex` WHERE id = '$tagid' ");?>
diff --git a/src/apps/tags.php b/src/apps/tags.php
index 8849b5ef..7cdf3473 100755
--- a/src/apps/tags.php
+++ b/src/apps/tags.php
@@ -22,7 +22,7 @@ if (isset($_SERVER['QUERY_STRING'])) {
$tag = FilterSearch(urldecode($tag));
if ($tag != addslashes($tag)) $tag = '';
if ($tag == '') $dlist = new TagList($tag, 'tag.htm');
-else $dlist = new TagList($tag, 'taglist.htm');
+else $dlist = new TagList($tag, 'tag_list.htm');
$dlist->Display();
exit();
?>
\ No newline at end of file
diff --git a/src/system/archive/searchview.class.php b/src/system/archive/searchview.class.php
index 6419746c..a2e11e82 100755
--- a/src/system/archive/searchview.class.php
+++ b/src/system/archive/searchview.class.php
@@ -279,7 +279,7 @@ class SearchView
} else {
$style = '';
}
- $likeword .= " ".$row['keyword']." ";
+ $likeword .= "".$row['keyword']." ";
}
return $likeword;
}
diff --git a/src/system/helpers/channelunit.helper.php b/src/system/helpers/channelunit.helper.php
index 1da74e71..35b5d558 100755
--- a/src/system/helpers/channelunit.helper.php
+++ b/src/system/helpers/channelunit.helper.php
@@ -600,7 +600,7 @@ function GetHotKeywords(&$dsql, $num = 8, $nday = 365, $klen = 16, $orderby = 'c
$dsql->Execute('hw');
$hotword = '';
while ($row = $dsql->GetArray('hw')) {
- $hotword .= " ".$row['keyword']." ";
+ $hotword .= "".$row['keyword']." ";
}
return $hotword;
}
diff --git a/src/system/taglib/arclist.lib.php b/src/system/taglib/arclist.lib.php
index 0bcf816e..d113b6e1 100755
--- a/src/system/taglib/arclist.lib.php
+++ b/src/system/taglib/arclist.lib.php
@@ -297,7 +297,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele
$dsql->SetQuery($query);
$dsql->Execute('al');
$artlist = '';
- if ($pagesize > 0) $artlist .= "\r\n";
+ if ($pagesize > 0) $artlist .= "
\r\n";
if ($col > 1) $artlist = "
\r\n";
$dtp2 = new DedeTagParse();
$dtp2->SetNameSpace('field', '[', ']');
diff --git a/src/theme/dedebiz/taglist.htm b/src/theme/dedebiz/tag_list.htm
similarity index 100%
rename from src/theme/dedebiz/taglist.htm
rename to src/theme/dedebiz/tag_list.htm
diff --git a/src/theme/templet-filelist.inc b/src/theme/templet-filelist.inc
index 2cec45b3..94f6cf6f 100644
--- a/src/theme/templet-filelist.inc
+++ b/src/theme/templet-filelist.inc
@@ -24,7 +24,7 @@ list_soft.htm,软件列表模板
list_spec.htm,专题列表模板
search.htm,搜索模板
tag.htm,标签首页模板
-taglist.htm,标签文档列表模板
+tag_list.htm,标签文档列表模板
widget_article_feedback.htm,小部件评论模板
widget_article_likes.htm,小部件点赞模板
widget_hot.htm,小部件头条文档模板