mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/10637] Leftovers from implementation of extensions in mcp_main
Replacing code in includes/mcp/mcp_main.php that was missed in ticket 10323 PHPBB3-10637
This commit is contained in:
parent
11606c8607
commit
1d72a47ea6
1 changed files with 2 additions and 7 deletions
|
@ -907,16 +907,11 @@ function mcp_fork_topic($topic_ids)
|
||||||
if (!isset($search_type) && $topic_row['enable_indexing'])
|
if (!isset($search_type) && $topic_row['enable_indexing'])
|
||||||
{
|
{
|
||||||
// Select the search method and do some additional checks to ensure it can actually be utilised
|
// Select the search method and do some additional checks to ensure it can actually be utilised
|
||||||
$search_type = basename($config['search_type']);
|
$search_type = $config['search_type'];
|
||||||
|
|
||||||
if (!file_exists($phpbb_root_path . 'includes/search/' . $search_type . '.' . $phpEx))
|
|
||||||
{
|
|
||||||
trigger_error('NO_SUCH_SEARCH_MODULE');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!class_exists($search_type))
|
if (!class_exists($search_type))
|
||||||
{
|
{
|
||||||
include("{$phpbb_root_path}includes/search/$search_type.$phpEx");
|
trigger_error('NO_SUCH_SEARCH_MODULE');
|
||||||
}
|
}
|
||||||
|
|
||||||
$error = false;
|
$error = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue