我又测试了下,没有问题。
现在我猜测可能是你的编辑器的问题,部分编辑器不支持多行查找,例如像查找下面的内容
elseif($action == 'bump') {
if(!submitcheck('bumpsubmit')) {
include template('topicadmin_bump');
} else {
$modaction = 'BMP';
$modpostsnum ++;
$query = $db->query("SELECT tid, subject, lastposter, lastpost FROM {$tablepre}threads WHERE tid='$tid' LIMIT 1");
$thread = $db->fetch_array($query);
$thread['subject'] = addslashes($thread['subject']);
$thread['lastposter'] = addslashes($thread['lastposter']);
$db->query("UPDATE {$tablepre}threads SET lastpost='$timestamp', moderated='1' WHERE tid='$tid'");
$db->query("UPDATE {$tablepre}forums SET lastpost='$thread[tid]\t$thread[subject]\t$timestamp\t$thread[lastposter]' WHERE fid='$fid'");
$resultarray = array(
'redirect' => "forumdisplay.php?fid=$fid",
'reasonpm' => array(),
'modtids' => $thread['tid'],
'modlog' => $thread
);
}
}
部分编辑器可能查找时候会把光标定义在elseif($action == 'bump') {这行,如果你直接在光标停止的地方修改肯定会错误,最好把光标往下面拉。确定与我写的完全一致。 |