From 3acc0fd59121c9a7c488495475cc8d8fde83d75f Mon Sep 17 00:00:00 2001 From: Michael Save Date: Tue, 17 Apr 2012 08:06:25 +1000 Subject: [PATCH] Bugfix: with third-party scripts that use create_antibot() --- inc/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/functions.php b/inc/functions.php index a8f7dfe0..55e83a20 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -210,7 +210,7 @@ function _syslog($priority, $message) { } function create_antibot($board, $thread = null) { - require_once 'inc/anti-bot.php'; + require_once dirname(__FILE__) . '/inc/anti-bot.php'; return _create_antibot($board, $thread); }