diff options
author | brunoais <brunoaiss@gmail.com> | 2015-03-11 17:46:42 +0000 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2015-06-07 18:40:44 +0100 |
commit | 1e45a05000687994137adb7e415a9a39f9afd371 (patch) | |
tree | 104f9fa84ed16487823e3139ff57438aa9b75d40 /phpBB/includes/mcp | |
parent | 049f584111b5d7ce307d57d36b3be8a34d06194b (diff) | |
download | forums-1e45a05000687994137adb7e415a9a39f9afd371.tar forums-1e45a05000687994137adb7e415a9a39f9afd371.tar.gz forums-1e45a05000687994137adb7e415a9a39f9afd371.tar.bz2 forums-1e45a05000687994137adb7e415a9a39f9afd371.tar.xz forums-1e45a05000687994137adb7e415a9a39f9afd371.zip |
[ticket/13685] Add phpbb_dispatcher to fulltext search constructors
PHPBB3-13685
Diffstat (limited to 'phpBB/includes/mcp')
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 4 | ||||
-rw-r--r-- | phpBB/includes/mcp/mcp_post.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 10f1a5b8c1..fc28968101 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -1144,7 +1144,7 @@ function mcp_delete_post($post_ids, $is_soft = false, $soft_delete_reason = '', function mcp_fork_topic($topic_ids) { global $auth, $user, $db, $template, $config; - global $phpEx, $phpbb_root_path; + global $phpEx, $phpbb_root_path, $phpbb_dispatcher; if (!phpbb_check_ids($topic_ids, TOPICS_TABLE, 'topic_id', array('m_'))) { @@ -1222,7 +1222,7 @@ function mcp_fork_topic($topic_ids) } $error = false; - $search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user); + $search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user, $phpbb_dispatcher); $search_mode = 'post'; if ($error) diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php index 1687409198..fec872984c 100644 --- a/phpBB/includes/mcp/mcp_post.php +++ b/phpBB/includes/mcp/mcp_post.php @@ -497,7 +497,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, $phpbb_root_path, $phpEx, $auth, $config, $db, $user); + $search = new $search_type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user, $phpbb_dispatcher); if (!$error && method_exists($search, 'destroy_cache')) { |