aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/mcp/mcp_post.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-08-15 22:05:26 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-08-15 22:05:26 +0530
commit7c406e1e8123758c20b92c7ff424bbf9b9190cf2 (patch)
tree4114f693cf06cec96da924fdb102b6017f9427aa /phpBB/includes/mcp/mcp_post.php
parent938805106c75499eb953d1a22a1ce772c21252de (diff)
downloadforums-7c406e1e8123758c20b92c7ff424bbf9b9190cf2.tar
forums-7c406e1e8123758c20b92c7ff424bbf9b9190cf2.tar.gz
forums-7c406e1e8123758c20b92c7ff424bbf9b9190cf2.tar.bz2
forums-7c406e1e8123758c20b92c7ff424bbf9b9190cf2.tar.xz
forums-7c406e1e8123758c20b92c7ff424bbf9b9190cf2.zip
[ticket/11052] update search backend constructor everywhere
PHPBB3-11052
Diffstat (limited to 'phpBB/includes/mcp/mcp_post.php')
-rw-r--r--phpBB/includes/mcp/mcp_post.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php
index 2a52a858b3..520c964228 100644
--- a/phpBB/includes/mcp/mcp_post.php
+++ b/phpBB/includes/mcp/mcp_post.php
@@ -393,7 +393,7 @@ function mcp_post_details($id, $mode, $action)
*/
function change_poster(&$post_info, $userdata)
{
- global $auth, $db, $config, $phpbb_root_path, $phpEx;
+ global $auth, $db, $config, $phpbb_root_path, $phpEx, $user;
if (empty($userdata) || $userdata['user_id'] == $post_info['user_id'])
{
@@ -470,7 +470,7 @@ function change_poster(&$post_info, $userdata)
{
// We do some additional checks in the module to ensure it can actually be utilised
$error = false;
- $search = new $search_type($error);
+ $search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);
if (!$error && method_exists($search, 'destroy_cache'))
{