mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/11011] pass $auth to search backend constructor
$auth global var is passed to search backend constructor, as it is used by sphinx backend. PHPBB3-11011
This commit is contained in:
@@ -596,7 +596,7 @@ class acp_search
|
||||
*/
|
||||
function init_search($type, &$search, &$error)
|
||||
{
|
||||
global $phpbb_root_path, $phpEx, $user, $config, $db;
|
||||
global $phpbb_root_path, $phpEx, $user, $auth, $config, $db;
|
||||
|
||||
if (!class_exists($type) || !method_exists($type, 'keyword_search'))
|
||||
{
|
||||
@@ -605,7 +605,7 @@ class acp_search
|
||||
}
|
||||
|
||||
$error = false;
|
||||
$search = new $type($error, $phpbb_root_path, $phpEx, $config, $db, $user);
|
||||
$search = new $type($error, $phpbb_root_path, $phpEx, $auth, $config, $db, $user);
|
||||
|
||||
return $error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user