From 413ac79a995e50c4205750d2855e50c228e2ba16 Mon Sep 17 00:00:00 2001 From: joey Date: Wed, 2 Aug 2006 02:17:42 +0000 Subject: [PATCH] backlink is just the reverse of link, so.. --- IkiWiki.pm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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 ($$) { #{{{ -- 2.39.5