aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2014-10-30 22:47:51 -0700
committerCesar G <prototech91@gmail.com>2014-10-30 22:47:51 -0700
commit65c3f2a8f14ba5e641acbae7e1cc132becbec31b (patch)
tree3ee412bb2e12a9b6963d627c3ceafc8e08c51d90
parent17928563a2a265f4b70feef64e5030ea3c602269 (diff)
downloadforums-65c3f2a8f14ba5e641acbae7e1cc132becbec31b.tar
forums-65c3f2a8f14ba5e641acbae7e1cc132becbec31b.tar.gz
forums-65c3f2a8f14ba5e641acbae7e1cc132becbec31b.tar.bz2
forums-65c3f2a8f14ba5e641acbae7e1cc132becbec31b.tar.xz
forums-65c3f2a8f14ba5e641acbae7e1cc132becbec31b.zip
[ticket/13253] Fix MCP queue link in active topics search.
PHPBB3-13253
-rw-r--r--phpBB/search.php2
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&amp;mode=' . (($topic_unapproved) ? 'approve_details' : 'unapproved_posts') . "&amp;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&amp;mode=deleted_topics&amp;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&amp;mode=deleted_topics&amp;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']);