po: (hopefully) fixed WikiLink to self with po_link_to=default
authorintrigeri <intrigeri@boum.org>
Wed, 26 Aug 2009 05:02:29 +0000 (07:02 +0200)
committerintrigeri <intrigeri@boum.org>
Wed, 26 Aug 2009 05:02:29 +0000 (07:02 +0200)
IkiWiki/Plugin/po.pm

index 41490699914ef632647ab593da91a1aa90c648d0..ea0e5646761722542c8a66f81289831ce58b6272 100644 (file)
@@ -547,6 +547,9 @@ sub mybestlink ($$) {
        my $page=shift;
        my $link=shift;
 
+       return $origsubs{'bestlink'}->($page, $link)
+               if $config{po_link_to} eq "default";
+
        my $res=$origsubs{'bestlink'}->(masterpage($page), $link);
        if (length $res
            && ($config{po_link_to} eq "current" || $config{po_link_to} eq "negotiated")