aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-02 02:17:42 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-02 02:17:42 +0000
commit413ac79a995e50c4205750d2855e50c228e2ba16 (patch)
tree163c3570d992230d557bbcbc04efd96e32d4d4a0
parent895da646a871d6fe858d0f09acf881ae2b2d34d6 (diff)
downloadikiwiki-413ac79a995e50c4205750d2855e50c228e2ba16.tar
ikiwiki-413ac79a995e50c4205750d2855e50c228e2ba16.tar.gz
backlink is just the reverse of link, so..
-rw-r--r--IkiWiki.pm9
1 files changed, 1 insertions, 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 ($$) { #{{{