织梦dedecms去除手机站自动生成首页index.html静态文件
更多精彩就在: 51免费论文网|www.jxszl.com
index.html,PC端更新后,手机端首页自动更新.
查找/m/index.php里面的
$row[showmod]=isset($row[showmod])?$row[showmod]:0;if($row[showmod]==I.){$pv->SaveToHtml(dirname(_FILE_)./index.html);include(dirname(_FILE_)./index.html);exit();}else{$pv->Display();exit();}
替换为:
$pv->SetTemplet($cfg_basedir.$cfg_templets_dir."/".$row[templet]);$pv->Display();exit();
原文链接:http://www.jxszl.com/biancheng/dedecms/75173.html
热门阅读