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

Hmily_LCG:masterDiscuz!:master

Hmily_LCG 创建于: 2017-11-16 11:41
审查 1157835_comsenzdiscuz   测试 1157835_comsenzdiscuz

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

1157835_comsenzdiscuzDiscuz! 合并于 2017-11-16 11:43

1 条评论, 2 人参与 1183879_hmily_lcg 1157835_comsenzdiscuz

1157835_comsenzdiscuz
Discuz! 2017-11-16 11:43 拥有者

审查通过

登录 后才可以发表评论

1 文件发生了变化, 影响行数: +3 -3

upload/source/include/modcp/modcp_thread.php
@@ -105,7 +105,7 @@ if($op == 'thread') {
$total = C::t('forum_thread')->count_by_fid_typeid_displayorder($_G['fid'], $_GET['typeid'], 0, '>=');
$tpage = ceil($total / $_G['tpp']);
$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) {
$start = ($page - 1) * $_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'];
$tpage = ceil($total / $_G['tpp']);
$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) {
$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']);
@@ -341,7 +341,7 @@ if($op == 'post') {
$total = $result['count'];
$tpage = ceil($total / $_G['tpp']);
$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']) {
$start = ($page - 1) * $_G['tpp'];
$tids = array();