diff options
author | David M <davidmj@users.sourceforge.net> | 2007-06-09 12:26:32 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-06-09 12:26:32 +0000 |
commit | 1667a179238e77223d8ce83ab857d122a9a5c267 (patch) | |
tree | 3bdd7e8b76332b4824c89f0feb509cb9442eb41a | |
parent | 9f4fceb9b6ba01b3a6b107b6c4a9298765d3f927 (diff) | |
download | forums-1667a179238e77223d8ce83ab857d122a9a5c267.tar forums-1667a179238e77223d8ce83ab857d122a9a5c267.tar.gz forums-1667a179238e77223d8ce83ab857d122a9a5c267.tar.bz2 forums-1667a179238e77223d8ce83ab857d122a9a5c267.tar.xz forums-1667a179238e77223d8ce83ab857d122a9a5c267.zip |
#12067
git-svn-id: file:///svn/phpbb/trunk@7739 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/docs/CHANGELOG.html | 1 | ||||
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 16 |
2 files changed, 14 insertions, 3 deletions
diff --git a/phpBB/docs/CHANGELOG.html b/phpBB/docs/CHANGELOG.html index a489065b37..45c272db54 100644 --- a/phpBB/docs/CHANGELOG.html +++ b/phpBB/docs/CHANGELOG.html @@ -255,6 +255,7 @@ p a { <li>[Feature] append_sid() supporting anchor (Bug #11535) - patch provided by Schumi and ToonArmy</li> <li>[Fix] Remember selected language while registering after submit (Bug #11435)</li> <li>[Fix] UTF-8 support in theme and template editors (Bug #12251)</li> + <li>[Fix] Allow for posts per page in the MCP to change during topic selection (Bug #12067)</li> </ul> diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index 95f8d6c71b..3e9c5655e8 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -37,18 +37,25 @@ function mcp_topic_view($id, $mode, $action) $to_topic_id = request_var('to_topic_id', 0); $to_forum_id = request_var('to_forum_id', 0); $post_id_list = request_var('post_id_list', array(0)); + $sort = isset($_POST['sort']) ? true : false; // Split Topic? if ($action == 'split_all' || $action == 'split_beyond') { - split_topic($action, $topic_id, $to_forum_id, $subject); + if (!$sort) + { + split_topic($action, $topic_id, $to_forum_id, $subject); + } $action = 'split'; } // Merge Posts? if ($action == 'merge_posts') { - merge_posts($topic_id, $to_topic_id); + if (!$sort) + { + merge_posts($topic_id, $to_topic_id); + } $action = 'merge'; } @@ -69,7 +76,10 @@ function mcp_topic_view($id, $mode, $action) trigger_error('NO_POST_SELECTED'); } - approve_post($post_id_list, $id, $mode); + if (!$sort) + { + approve_post($post_id_list, $id, $mode); + } } // Jumpbox, sort selects and that kind of things |