修复 新触屏版的跳转

This commit is contained in:
Comsenz 2017-10-26 09:30:46 +08:00
parent 0cd1a9ca1d
commit cf44ff9ae7
1 changed files with 6 additions and 0 deletions

View File

@ -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'])) {