!133 修复前台帖子管理页面,当帖子有分表的时候,搜索帖子分表回复切换页面无效,丢失了一个分表的参数。

Merge pull request !133 from Hmily_LCG/master
This commit is contained in:
Hmily_LCG 2017-11-16 11:43:55 +08:00 committed by Discuz!
parent 6585928627
commit 14ec6ab0ed
1 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ if($op == 'thread') {
$total = C::t('forum_thread')->count_by_fid_typeid_displayorder($_G['fid'], $_GET['typeid'], 0, '>='); $total = C::t('forum_thread')->count_by_fid_typeid_displayorder($_G['fid'], $_GET['typeid'], 0, '>=');
$tpage = ceil($total / $_G['tpp']); $tpage = ceil($total / $_G['tpp']);
$page = min($tpage, $page); $page = min($tpage, $page);
$multipage = multi($total, $_G['tpp'], $page, "$cpscript?mod=modcp&action=$_GET[action]&op=$op&fid=$_G[fid]&do=$do"); $multipage = multi($total, $_G['tpp'], $page, "$cpscript?mod=modcp&action=$_GET[action]&op=$op&fid=$_G[fid]&do=$do&posttableid=$posttableid");
if($total) { if($total) {
$start = ($page - 1) * $_G['tpp']; $start = ($page - 1) * $_G['tpp'];
$threads = C::t('forum_thread')->fetch_all_by_fid_typeid_displayorder($_G['fid'], $_GET['typeid'], 0, '>=', $start, $_G['tpp']); $threads = C::t('forum_thread')->fetch_all_by_fid_typeid_displayorder($_G['fid'], $_GET['typeid'], 0, '>=', $start, $_G['tpp']);
@ -120,7 +120,7 @@ if($op == 'thread') {
$total = $result['count']; $total = $result['count'];
$tpage = ceil($total / $_G['tpp']); $tpage = ceil($total / $_G['tpp']);
$page = min($tpage, $page); $page = min($tpage, $page);
$multipage = multi($total, $_G['tpp'], $page, "$cpscript?mod=modcp&action=$_GET[action]&op=$op&fid=$_G[fid]&do=$do"); $multipage = multi($total, $_G['tpp'], $page, "$cpscript?mod=modcp&action=$_GET[action]&op=$op&fid=$_G[fid]&do=$do&posttableid=$posttableid");
if($total) { if($total) {
$start = ($page - 1) * $_G['tpp']; $start = ($page - 1) * $_G['tpp'];
$threads = C::t('forum_thread')->fetch_all_by_tid_fid_displayorder(explode(',', $result['tids']), null, null, 'lastpost', $start, $_G['tpp']); $threads = C::t('forum_thread')->fetch_all_by_tid_fid_displayorder(explode(',', $result['tids']), null, null, 'lastpost', $start, $_G['tpp']);
@ -341,7 +341,7 @@ if($op == 'post') {
$total = $result['count']; $total = $result['count'];
$tpage = ceil($total / $_G['tpp']); $tpage = ceil($total / $_G['tpp']);
$page = min($tpage, $page); $page = min($tpage, $page);
$multipage = multi($total, $_G['tpp'], $page, "$cpscript?mod=modcp&action=$_GET[action]&op=$op&fid=$_G[fid]&do=$do"); $multipage = multi($total, $_G['tpp'], $page, "$cpscript?mod=modcp&action=$_GET[action]&op=$op&fid=$_G[fid]&do=$do&posttableid=$posttableid");
if($total && $result['pids']) { if($total && $result['pids']) {
$start = ($page - 1) * $_G['tpp']; $start = ($page - 1) * $_G['tpp'];
$tids = array(); $tids = array();