From b8444216b2d6c01401351dd4f7fecc9ac8e8cefe Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Mon, 13 Mar 2006 10:25:14 +0000 Subject: [PATCH] don't include multiple times PEAR XMLRPC --- .../serendipity_event_weblogping.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php index 7acdca2..b5958b6 100644 --- a/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php +++ b/plugins/serendipity_event_weblogping/serendipity_event_weblogping.php @@ -141,7 +141,9 @@ 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) { -- 2.39.5