优化 后台默认手机触屏版风格设置支持触屏版

This commit is contained in:
Comsenz 2017-10-23 14:21:30 +08:00
parent 7a46827ef3
commit fd6c48806e
2 changed files with 5 additions and 1 deletions

View File

@ -171,7 +171,7 @@ if($operation == 'admin') {
$isdefault3 = $id == $defaultid3 ? 'checked' : '';
$mobile1exists = file_exists($style['directory'].'/mobile');
$d1exists = file_exists($style['directory'].'/mobile');
$d2exists = file_exists($style['directory'].'/touch');
$d2exists = file_exists($style['directory'].'/touch') || file_exists($style['directory'].'/m');
$d3exists = file_exists($style['directory'].'/wml');
$available = $style['available'] ? 'checked' : NULL;
$preview = file_exists($style['directory'].'/preview.jpg') ? $style['directory'].'/preview.jpg' : './static/image/admincp/stylepreview.gif';

View File

@ -712,6 +712,10 @@ class discuz_application extends discuz_base{
$this->var['cache']['style_default']['styleid'] = $styleid = $this->var['category']['styleid'];
}
}
if($this->var['setting']['mobile']['allowmnew'] && !defined('IN_MOBILE_API') && $this->var['setting']['styleid2']) {
$styleid = $this->var['setting']['styleid2'];
}
$styleid = intval($styleid);