1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/11011] passing global variables

Pass global variables to class constructor when making a new object.

PHPBB3-11011
This commit is contained in:
Dhruv
2012-07-24 12:10:22 +05:30
parent 33c6d7c8be
commit 2e218776bb
3 changed files with 3 additions and 7 deletions

View File

@@ -280,7 +280,7 @@ if ($keywords || $author || $author_id || $search_id || $submit)
}
// 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, $config, $db, $user);
if ($error)
{