From: intrigeri Date: Wed, 26 Aug 2009 05:02:29 +0000 (+0200) Subject: po: (hopefully) fixed WikiLink to self with po_link_to=default X-Git-Tag: 3.1415926~42^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0113c69d4fb5f55da932cb26e9eb58709d12e5a5;p=ikiwiki.git po: (hopefully) fixed WikiLink to self with po_link_to=default --- diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 414906999..ea0e56467 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -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")