From 27fe490149a29ee9ca0cb7aee75627ff7cd57747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=B7=E7=9B=9BDiscuz!?= Date: Sat, 21 Oct 2017 14:19:12 +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=99=BD=E5=B1=8F=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=88=E5=8E=9F=E5=9B=A0=E6=98=AF=E5=9C=A8=E9=9D=9E=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=A8=A1=E6=9D=BF=E4=B8=8B=E9=9C=80=E8=A6=81=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=E5=85=A8=E9=83=A8=20template/default/m/=20=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=88=B0=E5=BD=93=E5=89=8D=E6=A8=A1=E6=9D=BF=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E4=B8=8B=E6=89=8D=E5=8F=AF=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload/m/index.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upload/m/index.php b/upload/m/index.php index f539548..40d4e73 100644 --- a/upload/m/index.php +++ b/upload/m/index.php @@ -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/';