From ff626a517e96657e6a5c2fe694d4f4e4b6bfa2f8 Mon Sep 17 00:00:00 2001
From: brotherand2 <547996854@qq.com>
Date: Wed, 30 Mar 2022 08:03:59 +0000
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=BB=E9=A2=98?=
=?UTF-8?q?=E7=AE=A1=E7=90=86=E8=8B=A5=E5=B9=B2=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
upload/source/include/topicadmin/topicadmin_moderate.php | 9 ++++++---
upload/template/default/forum/topicadmin.htm | 2 +-
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/upload/source/include/topicadmin/topicadmin_moderate.php b/upload/source/include/topicadmin/topicadmin_moderate.php
index 43ce77516..3bfc41ad6 100644
--- a/upload/source/include/topicadmin/topicadmin_moderate.php
+++ b/upload/source/include/topicadmin/topicadmin_moderate.php
@@ -104,6 +104,7 @@ if(!submitcheck('modsubmit')) {
$stylecheck[$i] = $stylestr[$i - 1] ? 1 : 0;
}
$colorcheck = $string[1];
+ $highlight_bgcolor = $threadlist[$_G['tid']]['bgcolor'];
$_G['forum']['modrecommend'] = is_array($_G['forum']['modrecommend']) ? $_G['forum']['modrecommend'] : array();
$expirationstick = get_expiration($_G['tid'], 'EST');
$expirationdigest = get_expiration($_G['tid'], 'EDI');
@@ -134,9 +135,10 @@ if(!submitcheck('modsubmit')) {
$selectposition[$oldthread['position']] = ' selected="selected"';
$selectattach = $oldthread['aid'];
} else {
- $selectattach = $imgattach[0]['aid'];
+ $selectattach = $imgattach[array_keys($imgattach)[0]]['aid'];
$selectposition[0] = ' selected="selected"';
}
+ $expirationrecommend = get_expiration($_G['tid'], 'REC');
}
include template('forum/topicadmin');
@@ -271,6 +273,7 @@ if(!submitcheck('modsubmit')) {
$modaction = $isrecommend ? 'REC' : 'URE';
$thread = daddslashes($thread, 1);
$selectattach = $_GET['selectattach'];
+ $position = $_GET['position'];
C::t('forum_threadmod')->update_by_tid_action($tidsarr, array('REC'), array('status' => 0));
if($isrecommend) {
@@ -356,7 +359,7 @@ if(!submitcheck('modsubmit')) {
C::t('forum_thread')->update($tidsarr, array('lastpost'=>$expiration, 'moderated'=>1), true);
C::t('forum_forum')->update($_G['fid'], array('lastpost' => "$thread[tid]\t$thread[subject]\t$expiration\t$thread[lastposter]"));
- $_G['forum']['threadcaches'] && deletethreadcaches($thread['tid']);
+ $_G['forum']['threadcaches'] && deletethreadcaches($moderatetids);
} elseif($operation == 'down') {
if(!$_G['group']['allowbumpthread']) {
showmessage('no_privilege_downthread');
@@ -365,7 +368,7 @@ if(!submitcheck('modsubmit')) {
$downtime = TIMESTAMP - 86400 * 730;
C::t('forum_thread')->update($tidsarr, array('lastpost'=>$downtime, 'moderated'=>1), true);
- $_G['forum']['threadcaches'] && deletethreadcaches($thread['tid']);
+ $_G['forum']['threadcaches'] && deletethreadcaches($moderatetids);
} elseif($operation == 'delete') {
if(!$_G['group']['allowdelpost']) {
showmessage('no_privilege_delpost');
diff --git a/upload/template/default/forum/topicadmin.htm b/upload/template/default/forum/topicadmin.htm
index 495d49e23..3b6e0726a 100644
--- a/upload/template/default/forum/topicadmin.htm
+++ b/upload/template/default/forum/topicadmin.htm
@@ -138,7 +138,7 @@
-
+
B
I
--
Gitee