From: garvinhicking Date: Mon, 15 May 2006 11:25:01 +0000 (+0000) Subject: move init call X-Git-Tag: 1.0~21 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8fbfb98c733beda526fc95266110f1fd291705c5;p=s9y.git move init call --- diff --git a/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php b/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php index 74a2ee7..51d9c78 100644 --- a/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php +++ b/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php @@ -322,7 +322,9 @@ var $filter_defaults; global $serendipity; $ret = false; + require_once S9Y_PEAR_PATH . 'HTTP/Request.php'; if (function_exists('serendipity_request_start')) serendipity_request_start(); + switch($where) { case 'akismet.com': $ret = array(); @@ -346,8 +348,6 @@ var $filter_defaults; 'maxRedirects' => 3 ); - require_once S9Y_PEAR_PATH . 'HTTP/Request.php'; - $req = &new HTTP_Request( 'http://rest.akismet.com/1.1/verify-key', $opt