From: garvinhicking Date: Mon, 13 Mar 2006 10:25:12 +0000 (+0000) Subject: don't include multiple times PEAR XMLRPC X-Git-Tag: 1.0~71 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=00e0877a9ba6bbf0a72a73e9285bc40b7c1d2ace;p=s9y.git don't include multiple times PEAR XMLRPC --- diff --git a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php index 7acdca2..e1bc3c4 100644 --- a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php +++ b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php @@ -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']])) {