summaryrefslogtreecommitdiff
path: root/lib/ping.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-25 18:42:34 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-25 18:42:34 -0400
commit865b716f0919b6e5133133cd6be53f4143660324 (patch)
tree2941b64f8de39fce196db2e43f08a21b94ca4e98 /lib/ping.php
parent1ee7d0ab55aa5e270a5087c939339b662aefbd9e (diff)
change LACONICA to STATUSNET
Diffstat (limited to 'lib/ping.php')
-rw-r--r--lib/ping.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ping.php b/lib/ping.php
index 2ae4316c3..48b4fa18f 100644
--- a/lib/ping.php
+++ b/lib/ping.php
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-if (!defined('LACONICA')) { exit(1); }
+if (!defined('STATUSNET')) { exit(1); }
function ping_broadcast_notice($notice) {
@@ -47,7 +47,7 @@ function ping_broadcast_notice($notice) {
$context = stream_context_create(array('http' => array('method' => "POST",
'header' =>
"Content-Type: text/xml\r\n".
- "User-Agent: StatusNet/".LACONICA_VERSION."\r\n",
+ "User-Agent: StatusNet/".STATUSNET_VERSION."\r\n",
'content' => $req)));
$file = file_get_contents($notify_url, false, $context);
@@ -81,11 +81,11 @@ function ping_broadcast_notice($notice) {
if ($type === 'get') {
$result = $fetcher->get($notify_url . '?' . http_build_query($args),
- array('User-Agent: StatusNet/'.LACONICA_VERSION));
+ array('User-Agent: StatusNet/'.STATUSNET_VERSION));
} else {
$result = $fetcher->post($notify_url,
http_build_query($args),
- array('User-Agent: StatusNet/'.LACONICA_VERSION));
+ array('User-Agent: StatusNet/'.STATUSNET_VERSION));
}
if ($result->status != '200') {
common_log(LOG_WARNING,