aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/po.pm
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-08-26 07:02:29 +0200
committerintrigeri <intrigeri@boum.org>2009-08-26 07:02:29 +0200
commit0113c69d4fb5f55da932cb26e9eb58709d12e5a5 (patch)
tree15a4aada343a2c3968d42046b6a788bde3f647ab /IkiWiki/Plugin/po.pm
parent7dd9b65db4dae3aca473f15ea7dcdbf88c8acb1b (diff)
downloadikiwiki-0113c69d4fb5f55da932cb26e9eb58709d12e5a5.tar
ikiwiki-0113c69d4fb5f55da932cb26e9eb58709d12e5a5.tar.gz
po: (hopefully) fixed WikiLink to self with po_link_to=default
Diffstat (limited to 'IkiWiki/Plugin/po.pm')
-rw-r--r--IkiWiki/Plugin/po.pm3
1 files changed, 3 insertions, 0 deletions
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")