mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-08 10:53:13 +02:00
[ticket/10637] Leftovers from implementation of extensions in develop tools
Replacing code in development tools that was missed in ticket 10323 PHPBB3-10637
This commit is contained in:
@ -25,7 +25,6 @@ $phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '../';
|
|||||||
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
$phpEx = substr(strrchr(__FILE__, '.'), 1);
|
||||||
require($phpbb_root_path . 'common.' . $phpEx);
|
require($phpbb_root_path . 'common.' . $phpEx);
|
||||||
require($phpbb_root_path . 'includes/acp/acp_search.' . $phpEx);
|
require($phpbb_root_path . 'includes/acp/acp_search.' . $phpEx);
|
||||||
require($phpbb_root_path . 'includes/search/' . $class_name . '.' . $phpEx);
|
|
||||||
|
|
||||||
$user->session_begin();
|
$user->session_begin();
|
||||||
$auth->acl($user->data);
|
$auth->acl($user->data);
|
||||||
|
@ -34,13 +34,11 @@ $user->setup();
|
|||||||
|
|
||||||
$search_type = $config['search_type'];
|
$search_type = $config['search_type'];
|
||||||
|
|
||||||
if (!file_exists($phpbb_root_path . 'includes/search/' . $search_type . '.' . $phpEx))
|
if (!class_exists($search_type))
|
||||||
{
|
{
|
||||||
trigger_error('NO_SUCH_SEARCH_MODULE');
|
trigger_error('NO_SUCH_SEARCH_MODULE');
|
||||||
}
|
}
|
||||||
|
|
||||||
require($phpbb_root_path . 'includes/search/' . $search_type . '.' . $phpEx);
|
|
||||||
|
|
||||||
$error = false;
|
$error = false;
|
||||||
$search = new $search_type($error);
|
$search = new $search_type($error);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user