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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user