mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 14:57:37 +02:00
[ticket/10637] Leftovers from implementation of extensions
Replacing code in includes/functions_admin.php that was missed in ticket 10323 PHPBB3-10637
This commit is contained in:
@@ -847,15 +847,13 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remove the message from the search index
|
// Remove the message from the search index
|
||||||
$search_type = basename($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');
|
||||||
}
|
}
|
||||||
|
|
||||||
include_once("{$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