From 0113c69d4fb5f55da932cb26e9eb58709d12e5a5 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 26 Aug 2009 07:02:29 +0200 Subject: [PATCH] po: (hopefully) fixed WikiLink to self with po_link_to=default --- IkiWiki/Plugin/po.pm | 3 +++ 1 file changed, 3 insertions(+) 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") -- 2.26.2