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 /phpBB/includes/mcp | |
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
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 16 |
1 files changed, 13 insertions, 3 deletions
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 |