diff options
author | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-09 22:13:13 +0200 |
---|---|---|
committer | Vjacheslav Trushkin <arty@phpbb.com> | 2012-02-09 22:13:13 +0200 |
commit | 1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a (patch) | |
tree | 0f2e3f3af22742f5a400e699c46a95c7ef6fb43d /phpBB/includes/mcp/mcp_main.php | |
parent | 11606c86073db42b0455a654d35d6ff38fb70105 (diff) | |
download | forums-1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a.tar forums-1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a.tar.gz forums-1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a.tar.bz2 forums-1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a.tar.xz forums-1d72a47ea6f47ec95b201ea4a3b9a9e0ea34da9a.zip |
[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
Diffstat (limited to 'phpBB/includes/mcp/mcp_main.php')
-rw-r--r-- | phpBB/includes/mcp/mcp_main.php | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/phpBB/includes/mcp/mcp_main.php b/phpBB/includes/mcp/mcp_main.php index 10e5956fc2..a21c67924d 100644 --- a/phpBB/includes/mcp/mcp_main.php +++ b/phpBB/includes/mcp/mcp_main.php @@ -907,16 +907,11 @@ function mcp_fork_topic($topic_ids) if (!isset($search_type) && $topic_row['enable_indexing']) { // Select the search method and do some additional checks to ensure it can actually be utilised - $search_type = basename($config['search_type']); - - if (!file_exists($phpbb_root_path . 'includes/search/' . $search_type . '.' . $phpEx)) - { - trigger_error('NO_SUCH_SEARCH_MODULE'); - } + $search_type = $config['search_type']; if (!class_exists($search_type)) { - include("{$phpbb_root_path}includes/search/$search_type.$phpEx"); + trigger_error('NO_SUCH_SEARCH_MODULE'); } $error = false; |