diff options
author | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-09 22:17:33 +0200 |
---|---|---|
committer | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-09 22:17:33 +0200 |
commit | 92303d2dacdd7be3fad4d2ffba84c0d30fcadeaf (patch) | |
tree | cdf0665236db3d562c23d401c47bd09ccaba6e3c /phpBB/includes/mcp/mcp_post.php | |
parent | 1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a (diff) | |
download | forums-92303d2dacdd7be3fad4d2ffba84c0d30fcadeaf.tar forums-92303d2dacdd7be3fad4d2ffba84c0d30fcadeaf.tar.gz forums-92303d2dacdd7be3fad4d2ffba84c0d30fcadeaf.tar.bz2 forums-92303d2dacdd7be3fad4d2ffba84c0d30fcadeaf.tar.xz forums-92303d2dacdd7be3fad4d2ffba84c0d30fcadeaf.zip |
[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
Diffstat (limited to 'phpBB/includes/mcp/mcp_post.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_post.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/mcp/mcp_post.php b/phpBB/includes/mcp/mcp_post.php index ee79928eb1..2a52a858b3 100644 --- a/phpBB/includes/mcp/mcp_post.php +++ b/phpBB/includes/mcp/mcp_post.php @@ -464,12 +464,10 @@ function change_poster(&$post_info, $userdata) } // 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 $error = false; $search = new $search_type($error); |