]> git.mjollnir.org Git - s9y.git/commitdiff
don't include multiple times PEAR XMLRPC
authorgarvinhicking <garvinhicking>
Mon, 13 Mar 2006 10:25:12 +0000 (10:25 +0000)
committergarvinhicking <garvinhicking>
Mon, 13 Mar 2006 10:25:12 +0000 (10:25 +0000)
plugins/serendipity_event_weblogping/serendipity_event_weblogping.php

index 7acdca27790a343195ef0d8b628ce46fbd8d5d9c..e1bc3c41a8c3067c3b264f9fd418c7e49853256c 100644 (file)
@@ -141,8 +141,10 @@ class serendipity_event_weblogping extends serendipity_event
                     break;
 
                 case 'backend_publish':
-                    include_once(S9Y_PEAR_PATH . "XML/RPC.php");
-
+                    if (!class_exists('XML_RPC_Base')) {
+                        include_once(S9Y_PEAR_PATH . "XML/RPC.php");
+                    }
+                                                                
                     // First cycle through list of services to remove superseding services which may have been checked
                     foreach ($this->services as $index => $service) {
                         if (!empty($service['supersedes']) && isset($serendipity['POST']['announce_entries_' . $service['name']])) {