diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-04-01 14:40:58 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-04-01 14:40:58 -0400 |
commit | 3bec08c878d50cfa43ffb72466842bda5dd88171 (patch) | |
tree | abb5c38a0567dfb9af37c68801832b8bb56e9335 /plugins/LinkbackPlugin.php | |
parent | 783d292739886811ab41215c614940d24214358f (diff) | |
parent | e7381493ad036e686f82f432066f00ff911ad5d5 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev
Conflicts:
README
lib/router.php
Diffstat (limited to 'plugins/LinkbackPlugin.php')
-rw-r--r-- | plugins/LinkbackPlugin.php | 11 |
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; |