diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-02-23 10:55:57 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-02-23 10:55:57 +0100 |
commit | 8e1e48a7b69b78e10297869e3aaf224e5c12e493 (patch) | |
tree | 04afbae16d2c940f04c89f9b879e502135c79725 /phpBB/includes/mcp/mcp_topic.php | |
parent | 4b2690f792d330622fd5409ded5f163db1b97bd9 (diff) | |
download | forums-8e1e48a7b69b78e10297869e3aaf224e5c12e493.tar forums-8e1e48a7b69b78e10297869e3aaf224e5c12e493.tar.gz forums-8e1e48a7b69b78e10297869e3aaf224e5c12e493.tar.bz2 forums-8e1e48a7b69b78e10297869e3aaf224e5c12e493.tar.xz forums-8e1e48a7b69b78e10297869e3aaf224e5c12e493.zip |
[ticket/8636] Add resync option to topic_view moderation page
PHPBB3-8636
Diffstat (limited to 'phpBB/includes/mcp/mcp_topic.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_topic.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/mcp/mcp_topic.php b/phpBB/includes/mcp/mcp_topic.php index d7cc1e795a..7d4edaf362 100644 --- a/phpBB/includes/mcp/mcp_topic.php +++ b/phpBB/includes/mcp/mcp_topic.php @@ -50,6 +50,16 @@ function mcp_topic_view($id, $mode, $action) $submitted_id_list = request_var('post_ids', array(0)); $checked_ids = $post_id_list = request_var('post_id_list', array(0)); + // Resync Topic? + if ($action == 'resync') + { + if (!function_exists('mcp_resync_topics')) + { + include($phpbb_root_path . 'includes/mcp/mcp_forum.' . $phpEx); + } + mcp_resync_topics(array($topic_id)); + } + // Split Topic? if ($action == 'split_all' || $action == 'split_beyond') { @@ -320,6 +330,7 @@ function mcp_topic_view($id, $mode, $action) 'S_CAN_APPROVE' => ($has_unapproved_posts && $auth->acl_get('m_approve', $topic_info['forum_id'])) ? true : false, 'S_CAN_LOCK' => ($auth->acl_get('m_lock', $topic_info['forum_id'])) ? true : false, 'S_CAN_REPORT' => ($auth->acl_get('m_report', $topic_info['forum_id'])) ? true : false, + 'S_CAN_SYNC' => $auth->acl_get('m_', $topic_info['forum_id']), 'S_REPORT_VIEW' => ($action == 'reports') ? true : false, 'S_MERGE_VIEW' => ($action == 'merge') ? true : false, 'S_SPLIT_VIEW' => ($action == 'split') ? true : false, |