/** * sends xmlrpc pings */ function sendXmlRpcPings() { // send the xmlrpc ping if (!$this->_config->getValue("xmlrpc_ping_enabled", false)) { return ""; } $blogs = new Blogs(); $resultArray = $blogs->updateNotify($this->_blogInfo); // check to prevent throwing an error if the list is empty if ($resultArray == "" || empty($resultArray)) { return ""; } foreach ($resultArray as $host => $result) { if ($result == "OK") { $message .= $this->_locale->tr("xmlrpc_ping_ok") . $host . ".<br/>"; } else { $message .= $this->_locale->tr("error_sending_xmlrpc_ping") . $host . "."; if ($result != "") { $message .= "<br/>" . $this->_locale->tr("error_sending_xmlrpc_ping_message") . $result . "."; } $message .= "<br/>"; } } return $message; }