aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2012-02-10 13:06:58 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2012-02-10 13:06:58 -0500
commit56ef5d5025597d2d3528b59dc3e92f6f7978801f (patch)
tree8350a2dd1a7a7aae22170f726e28e03188ad3792 /phpBB/includes/functions_admin.php
parent9d81f9717519471dbe96de271b657ea4b8fbeda2 (diff)
parentcaeadf85d00ce90b8ea141bcb9a05d229ff1b5b4 (diff)
downloadforums-56ef5d5025597d2d3528b59dc3e92f6f7978801f.tar
forums-56ef5d5025597d2d3528b59dc3e92f6f7978801f.tar.gz
forums-56ef5d5025597d2d3528b59dc3e92f6f7978801f.tar.bz2
forums-56ef5d5025597d2d3528b59dc3e92f6f7978801f.tar.xz
forums-56ef5d5025597d2d3528b59dc3e92f6f7978801f.zip
Merge remote-tracking branch 'cyberalien/ticket/10637' into develop
* cyberalien/ticket/10637: [ticket/10637] Leftovers from implementation of extensions in convertor [ticket/10637] Leftovers from implementation of extensions in develop tools [ticket/10637] Leftovers from implementation of extensions in mcp_post [ticket/10637] Leftovers from implementation of extensions in mcp_main [ticket/10637] Leftovers from implementation of extensions
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 7fdf874456..7b4393f383 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -847,15 +847,13 @@ function delete_posts($where_type, $where_ids, $auto_sync = true, $posted_sync =
}
// 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');
}
- include_once("{$phpbb_root_path}includes/search/$search_type.$phpEx");
-
$error = false;
$search = new $search_type($error);