diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-11-01 09:08:11 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-11-01 09:08:11 +0100 |
commit | af77106a2ff9749eb9e5813d2b80692bab408a5c (patch) | |
tree | 3ee412bb2e12a9b6963d627c3ceafc8e08c51d90 | |
parent | 17928563a2a265f4b70feef64e5030ea3c602269 (diff) | |
parent | 65c3f2a8f14ba5e641acbae7e1cc132becbec31b (diff) | |
download | forums-af77106a2ff9749eb9e5813d2b80692bab408a5c.tar forums-af77106a2ff9749eb9e5813d2b80692bab408a5c.tar.gz forums-af77106a2ff9749eb9e5813d2b80692bab408a5c.tar.bz2 forums-af77106a2ff9749eb9e5813d2b80692bab408a5c.tar.xz forums-af77106a2ff9749eb9e5813d2b80692bab408a5c.zip |
Merge pull request #3097 from prototech/ticket/13253
[ticket/13253] Fix MCP queue link in active topics search.
-rw-r--r-- | phpBB/search.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/search.php b/phpBB/search.php index 0d269c5606..e80a89b382 100644 --- a/phpBB/search.php +++ b/phpBB/search.php @@ -922,7 +922,7 @@ if ($keywords || $author || $author_id || $search_id || $submit) $posts_unapproved = ($row['topic_visibility'] == ITEM_APPROVED && $row['topic_posts_unapproved'] && $auth->acl_get('m_approve', $forum_id)) ? true : false; $topic_deleted = $row['topic_visibility'] == ITEM_DELETED; $u_mcp_queue = ($topic_unapproved || $posts_unapproved) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=queue&mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&t=$result_topic_id", true, $user->session_id) : ''; - $u_mcp_queue = (!$u_mcp_queue && $topic_deleted) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&mode=deleted_topics&t=$result_topic_id", true, $user->session_id) : ''; + $u_mcp_queue = (!$u_mcp_queue && $topic_deleted) ? append_sid("{$phpbb_root_path}mcp.$phpEx", "i=queue&mode=deleted_topics&t=$result_topic_id", true, $user->session_id) : $u_mcp_queue; $row['topic_title'] = preg_replace('#(?!<.*)(?<!\w)(' . $hilit . ')(?!\w|[^<>]*(?:</s(?:cript|tyle))?>)#is', '<span class="posthilit">$1</span>', $row['topic_title']); |