请看如下操作:
源文件makehtml_all.php大约144行左右,大家可以直接搜索$step==10来找到该位置:
- else if($step==10)
- {
- $adminID = $cuserLogin->getUserID();
- $mkcachefile = DEDEDATA."/mkall_cache_{$adminID}.php";
- @unlink($mkcachefile);
- OptimizeData($dsql);
- ShowMsg("完成所有文件的更新!","javascript:;");
- exit();
- }//make step
修改为以下代码后:
- else if($step==10)
- {
- include_once(DEDEINC."/arc.sgpage.class.php");
- $dsql->Execute("ex","SELECT aid FROM `h_sgpage` ");
- $i = 0;
- while($row = $dsql->GetArray("ex"))
- {
- $sg = new sgpage($row['aid']);
- $sg->SaveToHtml();
- $i++;
- }
- $adminID = $cuserLogin->getUserID();
- $mkcachefile = DEDEDATA."/mkall_cache_{$adminID}.php";
- @unlink($mkcachefile);
- OptimizeData($dsql);
- ShowMsg("已更新$i个页面,并完成所有文件的更新!","javascript:;");
- exit();
- }//make step