about summary refs log tree commit diff stats
path: root/update/plugin/wordpress
diff options
context:
space:
mode:
Diffstat (limited to 'update/plugin/wordpress')
-rw-r--r--update/plugin/wordpress/trunk/instadisc/instadisc.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index c1d82ad..a92c726 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php
@@ -157,7 +157,13 @@ function sendPost($id)
157 new xmlrpcval($authorName, 'string'), 157 new xmlrpcval($authorName, 'string'),
158 new xmlrpcval($url, 'string'), 158 new xmlrpcval($url, 'string'),
159 new xmlrpcval(serialize(array()), 'string'))); 159 new xmlrpcval(serialize(array()), 'string')));
160 $client->send($msg); 160 $resp = $client->send($msg);
161 $val = $resp->value()->scalarVal();
162
163 if ($val == 2)
164 {
165 sendPost($id);
166 }
161} 167}
162 168
163add_action('comment_post','sendComment'); 169add_action('comment_post','sendComment');
@@ -181,7 +187,13 @@ function sendComment($id)
181 new xmlrpcval($author, 'string'), 187 new xmlrpcval($author, 'string'),
182 new xmlrpcval($url, 'string'), 188 new xmlrpcval($url, 'string'),
183 new xmlrpcval(serialize(array()), 'string'))); 189 new xmlrpcval(serialize(array()), 'string')));
184 $client->send($msg); 190 $resp = $client->send($msg);
191 $val = $resp->value()->scalarVal();
192
193 if ($val == 2)
194 {
195 sendComment($id);
196 }
185} 197}
186 198
187?> 199?>