aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
authorVjacheslav Trushkin <arty@phpbb.com>2012-02-09 21:58:39 +0200
committerVjacheslav Trushkin <arty@phpbb.com>2012-02-09 21:58:39 +0200
commit11606c86073db42b0455a654d35d6ff38fb70105 (patch)
tree8a12435eb4efdb77b867c1afd02414346de12228 /phpBB/includes/functions_admin.php
parent6582a84379d658f9dddbdb2705ea6bce74685c85 (diff)
downloadforums-11606c86073db42b0455a654d35d6ff38fb70105.tar
forums-11606c86073db42b0455a654d35d6ff38fb70105.tar.gz
forums-11606c86073db42b0455a654d35d6ff38fb70105.tar.bz2
forums-11606c86073db42b0455a654d35d6ff38fb70105.tar.xz
forums-11606c86073db42b0455a654d35d6ff38fb70105.zip
[ticket/10637] Leftovers from implementation of extensions
Replacing code in includes/functions_admin.php that was missed in ticket 10323 PHPBB3-10637
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);