]> git.mjollnir.org Git - s9y.git/commitdiff
move init call
authorgarvinhicking <garvinhicking>
Mon, 15 May 2006 11:25:01 +0000 (11:25 +0000)
committergarvinhicking <garvinhicking>
Mon, 15 May 2006 11:25:01 +0000 (11:25 +0000)
plugins/serendipity_event_spamblock/serendipity_event_spamblock.php

index 74a2ee7bcf87dd6281627405ae8e1c1d278b404e..51d9c7833a33c0f9412b9f0598ee767e433cde8b 100644 (file)
@@ -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