]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
backlink is just the reverse of link, so..
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 2 Aug 2006 02:17:42 +0000 (02:17 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Wed, 2 Aug 2006 02:17:42 +0000 (02:17 +0000)
IkiWiki.pm

index 7ef9007ff1636a26d439428baa60eeea58258099..cadbfd67f676114309845ef568783384fa057360 100644 (file)
@@ -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 ($$) { #{{{