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_post
Replacing code in includes/mcp/mcp_post.php that was missed in ticket 10323 PHPBB3-10637
This commit is contained in:
parent
1d72a47ea6
commit
92303d2dac
1 changed files with 2 additions and 4 deletions
|
@ -464,12 +464,10 @@ function change_poster(&$post_info, $userdata)
|
||||||
}
|
}
|
||||||
|
|
||||||
// refresh search cache of this post
|
// refresh search cache of this post
|
||||||
$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))
|
||||||
{
|
{
|
||||||
require("{$phpbb_root_path}includes/search/$search_type.$phpEx");
|
|
||||||
|
|
||||||
// We do some additional checks in the module to ensure it can actually be utilised
|
// We do some additional checks in the module to ensure it can actually be utilised
|
||||||
$error = false;
|
$error = false;
|
||||||
$search = new $search_type($error);
|
$search = new $search_type($error);
|
||||||
|
|
Loading…
Add table
Reference in a new issue