修复 新触屏版白屏的问题(原因是在非默认模板下需要复制全部 template/default/m/ 文件到当前模板目录下才可)

This commit is contained in:
康盛Discuz! 2017-10-21 14:19:12 +08:00
parent 777e3dda8f
commit 27fe490149
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,10 @@ $discuz->init_mobile = false;
$discuz->init();
if(!file_exists(DISCUZ_ROOT . $_G['style']['tpldir'] . '/m')) {
$_G['style']['tpldir'] = './template/default';
}
if ($_GET['c'] == 'static') {
$path = DISCUZ_ROOT . $_G['style']['tpldir'] . '/m/js/';
$bpath = DISCUZ_ROOT . 'template/default/m/js/';