ADDED_LINKS was completely broken. Seems to have been comparing links in the old text to.... links in the old text!

This commit is contained in:
Andrew Garrett 2009-01-30 23:31:31 +00:00
parent fc1ecd6caa
commit 61ad9a0aca

View file

@ -900,7 +900,7 @@ class AbuseFilter {
}
// Added links...
$editInfo = $article->prepareTextForEdit( $old_text, $revid );
$editInfo = $article->prepareTextForEdit( $new_text, $revid );
$newLinks = array_keys( $editInfo->output->getExternalLinks() );
$vars['ALL_LINKS'] = implode( "\n", $newLinks );
$vars['ADDED_LINKS'] = implode( "\n", array_diff( $newLinks, array_intersect( $newLinks, $oldLinks ) ) );