aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_search.php
diff options
context:
space:
mode:
authorDhruv <dhruv.goel92@gmail.com>2012-07-24 12:10:22 +0530
committerDhruv <dhruv.goel92@gmail.com>2012-07-28 18:28:51 +0530
commit2e218776bbac82841e1ced583c83890be5080af0 (patch)
treee9f88494af50df4aead9bff68e15e7628cee7661 /phpBB/includes/acp/acp_search.php
parent33c6d7c8be41ddd15b4e03e5dfecfd259c77b327 (diff)
downloadforums-2e218776bbac82841e1ced583c83890be5080af0.tar
forums-2e218776bbac82841e1ced583c83890be5080af0.tar.gz
forums-2e218776bbac82841e1ced583c83890be5080af0.tar.bz2
forums-2e218776bbac82841e1ced583c83890be5080af0.tar.xz
forums-2e218776bbac82841e1ced583c83890be5080af0.zip
[ticket/11011] passing global variables
Pass global variables to class constructor when making a new object. PHPBB3-11011
Diffstat (limited to 'phpBB/includes/acp/acp_search.php')
-rw-r--r--phpBB/includes/acp/acp_search.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_search.php b/phpBB/includes/acp/acp_search.php
index 82d9b021fe..5ae9f363f0 100644
--- a/phpBB/includes/acp/acp_search.php
+++ b/phpBB/includes/acp/acp_search.php
@@ -596,7 +596,7 @@ class acp_search
*/
function init_search($type, &$search, &$error)
{
- global $phpbb_root_path, $phpEx, $user;
+ global $phpbb_root_path, $phpEx, $user, $config, $db;
if (!class_exists($type) || !method_exists($type, 'keyword_search'))
{
@@ -605,7 +605,7 @@ class acp_search
}
$error = false;
- $search = new $type($error);
+ $search = new $type($error, $phpbb_root_path, $phpEx, $config, $db, $user);
return $error;
}