summaryrefslogtreecommitdiff
path: root/plugins/LinkbackPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-28 17:11:21 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-03-28 17:11:21 -0400
commita4919eab6a5f01c3220507790f16c55dd4dbc1f6 (patch)
tree70e2f407ea815aab1543c4e62bf130f7638eaea8 /plugins/LinkbackPlugin.php
parentd1f2e681331ba3b85bf3a1c5d8b8f35fc5a43a72 (diff)
Linkback plugin does pingback by default
We do pingback by default for the linkback plugin.
Diffstat (limited to 'plugins/LinkbackPlugin.php')
-rw-r--r--plugins/LinkbackPlugin.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/LinkbackPlugin.php b/plugins/LinkbackPlugin.php
index 1b5365100..56a26176b 100644
--- a/plugins/LinkbackPlugin.php
+++ b/plugins/LinkbackPlugin.php
@@ -105,12 +105,13 @@ class LinkbackPlugin extends Plugin
$pb = $match[1];
}
- $tb = $this->getTrackback($result->body, $result->final_url);
-
- if (!empty($tb)) {
- $this->trackback($result->final_url, $tb);
- } else if (!empty($pb)) {
+ if (!empty($pb)) {
$this->pingback($result->final_url, $pb);
+ } else {
+ $tb = $this->getTrackback($result->body, $result->final_url);
+ if (!empty($tb)) {
+ $this->trackback($result->final_url, $tb);
+ }
}
return $orig;