From cf44ff9ae781df98074ef1bc46190591d4a31422 Mon Sep 17 00:00:00 2001 From: Comsenz <10433182@qq.com> Date: Thu, 26 Oct 2017 09:30:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=96=B0=E8=A7=A6?= =?UTF-8?q?=E5=B1=8F=E7=89=88=E7=9A=84=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/source/class/discuz/discuz_application.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/upload/source/class/discuz/discuz_application.php b/upload/source/class/discuz/discuz_application.php index b36ac1c..59b8b4c 100644 --- a/upload/source/class/discuz/discuz_application.php +++ b/upload/source/class/discuz/discuz_application.php @@ -792,6 +792,12 @@ class discuz_application extends discuz_base{ dheader("location:$mobileurl"); } if($this->var['setting']['mobile']['allowmnew'] && !defined('IN_MOBILE_API') && !defined('NOT_IN_MOBILE_API')) { + $modid = $this->var['basescript'].'::'.CURMODULE; + if(($modid == 'forum::viewthread' || $modid == 'group::viewthread') && !empty($_GET['tid'])) { + dheader('location: '.$this->var['siteurl'].'m/?a=viewthread&tid='.$_GET['tid']); + } elseif(($modid == 'forum::forumdisplay' || $modid == 'group::forumdisplay') && !empty($_GET['fid'])) { + dheader('location: '.$this->var['siteurl'].'m/?a=index&fid='.$_GET['fid']); + } dheader("location:".$this->var['siteurl'].'m/'); } if($mobile === '3' && empty($this->var['setting']['mobile']['wml'])) {