From: joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Date: Wed, 2 Aug 2006 02:17:42 +0000 (+0000)
Subject: backlink is just the reverse of link, so..
X-Git-Tag: 1.14~9
X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/413ac79a995e50c4205750d2855e50c228e2ba16

backlink is just the reverse of link, so..
---

diff --git a/IkiWiki.pm b/IkiWiki.pm
index 7ef9007ff..cadbfd67f 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -586,14 +586,7 @@ sub match_link ($$) { #{{{
 } #}}}
 
 sub match_backlink ($$) { #{{{
-	my $page=shift;
-	my $linkto=shift;
-
-	my $links = $links{$linkto} or return undef;
-	foreach my $p (@$links) {
-		return 1 if lc $p eq $page;
-	}
-	return 0;
+	match_link(reverse @_);
 } #}}}
 
 sub match_creation_day ($$) { #{{{