aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-03-16 06:18:29 -0400
committerOleg Pudeyev <oleg@bsdpower.com>2012-03-16 06:18:29 -0400
commit81eeafbb8dfb6f3511d689169a2ccc46f3d07704 (patch)
tree587a7d4f0a9d015d43e1c3bd02dca19ff987ac55 /phpBB/includes
parent95e011ccbe7a744c4cb34ce99b3496278157fc6e (diff)
parent8e1e48a7b69b78e10297869e3aaf224e5c12e493 (diff)
downloadforums-81eeafbb8dfb6f3511d689169a2ccc46f3d07704.tar
forums-81eeafbb8dfb6f3511d689169a2ccc46f3d07704.tar.gz
forums-81eeafbb8dfb6f3511d689169a2ccc46f3d07704.tar.bz2
forums-81eeafbb8dfb6f3511d689169a2ccc46f3d07704.tar.xz
forums-81eeafbb8dfb6f3511d689169a2ccc46f3d07704.zip
Merge remote-tracking branch 'nickvergessen/ticket/8636' into develop-olympus
* nickvergessen/ticket/8636: [ticket/8636] Add resync option to topic_view moderation page
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/mcp/mcp_topic.php11
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,