- 打开
dede/archives_do.php
- 大约在39行(dedecms5.7版本)
if($dopost=='editArchives'){ $query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon FROM `dede_arctiny` arc LEFT JOIN `dede_arctype` tp ON tp.id=arc.typeid LEFT JOIN `dede_channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' "; $row = $dsql->GetOne($query); $gurl = $row['editcon']; if($gurl=='') $gurl='article_edit.php'; header("location:{$gurl}?aid=$aid"); exit(); }
- 替换为以下代码
// 编辑文档 function editArchives() { } --------------------------- if($dopost=='editArchives'){ $query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon FROM `dede_arctiny` arc LEFT JOIN `dede_arctype` tp ON tp.id=arc.typeid LEFT JOIN `dede_channeltype` ch ON ch.id=arc.channel WHERE arc.id='$aid' "; $row = $dsql->GetOne($query); $gurl = $row['editcon']; if($gurl=='') $gurl='article_edit.php'; echo '<META HTTP-EQUIV="REFRESH" CONTENT="1; URL='.$gurl.'?aid='.$aid.'">'; exit(); }