X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=classes%2Fxmlrpcclient.php;h=c359730f33921044b00f9a07187645051d4d8f5c;hb=3f0fafbde81f4dcb8067e4bc5fc7eca57f535ae2;hp=3f50e7aa4779ba9c3af8a9aa52051e4e59f5beed;hpb=6682f91db69d6f983acbf37ef7cf8aa8d93e9e1c;p=platal.git diff --git a/classes/xmlrpcclient.php b/classes/xmlrpcclient.php index 3f50e7a..c359730 100644 --- a/classes/xmlrpcclient.php +++ b/classes/xmlrpcclient.php @@ -1,6 +1,6 @@ bt) { + $this->bt->start($method . "\n" . var_export($args, true)); + } $answer = $this->http_post($query, $this->urlparts); + if ($this->bt) { + $this->bt->stop(); + } $result = $this->find_and_decode_xml($answer); + if ($this->bt) { + if (is_array($result) && isset($result['faultCode'])) { + $this->bt->update(0, $result['faultString']); + } else { + $this->bt->update(count($result)); + } + } if (is_array($result) && isset($result['faultCode'])) { trigger_error("Error in xmlrpc call $function\n". @@ -112,5 +126,5 @@ class XmlrpcClient } } -// vim:set et sw=4 sts=4 sws=4: +// vim:set et sw=4 sts=4 sws=4 enc=utf-8: ?>