summaryrefslogtreecommitdiff
path: root/plugins/LinkbackPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-30 11:18:03 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-03-30 11:18:03 -0400
commit47fc824e270bac8bc930587441d4c196af7ca766 (patch)
treeb90fa9d4c2d8c75e33126f6a67f0f968255c1d8e /plugins/LinkbackPlugin.php
parent8c073a34ce472fc8d0385659a222339a5ba4254a (diff)
parent559cf75edbbf60a0d9f8e4991333d85a79359a99 (diff)
Merge branch '0.7.x' into 0.8.x
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;