aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_posting.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-07-03 15:36:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-07-03 15:36:18 +0000
commitb883ff119f4e42fbc967a6b1971af2198762fbd8 (patch)
tree95341356c3efea7cad58309f28c224c45296f1f5 /phpBB/includes/functions_posting.php
parent3d9b5e52d9a14495f42d676428b6d00aff756923 (diff)
downloadforums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar
forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar.gz
forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar.bz2
forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.tar.xz
forums-b883ff119f4e42fbc967a6b1971af2198762fbd8.zip
let's see if i can break something. :o
git-svn-id: file:///svn/phpbb/trunk@7830 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_posting.php')
-rw-r--r--phpBB/includes/functions_posting.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/phpBB/includes/functions_posting.php b/phpBB/includes/functions_posting.php
index cf38f07a15..fb8c4a85e8 100644
--- a/phpBB/includes/functions_posting.php
+++ b/phpBB/includes/functions_posting.php
@@ -2253,7 +2253,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
trigger_error('NO_SUCH_SEARCH_MODULE');
}
- require_once("{$phpbb_root_path}includes/search/$search_type.$phpEx");
+ if (!class_exists($search_type))
+ {
+ include("{$phpbb_root_path}includes/search/$search_type.$phpEx");
+ }
$error = false;
$search = new $search_type($error);