From ff687e5b7fb12769c28f734048850059f0a62f8c Mon Sep 17 00:00:00 2001 From: brotherand2 <547996854@qq.com> Date: Wed, 25 May 2022 12:46:21 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E5=8F=91=E5=B8=96?= =?UTF-8?q?=E6=97=B6=E5=90=8C=E6=97=B6=E5=8B=BE=E9=80=89=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E7=B2=BE=E5=8D=8E=E5=8F=AA=E6=98=BE=E7=A4=BA=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E7=9A=84=E7=AE=A1=E7=90=86=E8=AE=B0=E5=BD=95=20=E5=A6=82:=20ht?= =?UTF-8?q?tps://zengyonghua.site/discuz35/forum.php=3Fmod=3Dviewthread&ti?= =?UTF-8?q?d=3D83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/class/model/model_forum_thread.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/upload/source/class/model/model_forum_thread.php b/upload/source/class/model/model_forum_thread.php index 4e1352a3c..833a6241c 100644 --- a/upload/source/class/model/model_forum_thread.php +++ b/upload/source/class/model/model_forum_thread.php @@ -160,8 +160,14 @@ class model_forum_thread extends discuz_model } if($this->param['moderated']) { - updatemodlog($this->tid, ($this->param['displayorder'] > 0 ? 'STK' : 'DIG')); - updatemodworks(($this->param['displayorder'] > 0 ? 'STK' : 'DIG'), 1); + if($this->param['displayorder'] > 0) { + updatemodlog($this->tid, 'STK'); + updatemodworks('STK', 1); + } + if($this->param['digest']) { + updatemodlog($this->tid, 'DIG'); + updatemodworks('DIG', 1); + } } $this->param['bbcodeoff'] = checkbbcodes($this->param['message'], !empty($this->param['bbcodeoff'])); -- Gitee