diff options
author | intrigeri <intrigeri@boum.org> | 2009-08-26 07:02:29 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-08-26 07:02:29 +0200 |
commit | 0113c69d4fb5f55da932cb26e9eb58709d12e5a5 (patch) | |
tree | 15a4aada343a2c3968d42046b6a788bde3f647ab | |
parent | 7dd9b65db4dae3aca473f15ea7dcdbf88c8acb1b (diff) | |
download | ikiwiki-0113c69d4fb5f55da932cb26e9eb58709d12e5a5.tar ikiwiki-0113c69d4fb5f55da932cb26e9eb58709d12e5a5.tar.gz |
po: (hopefully) fixed WikiLink to self with po_link_to=default
-rw-r--r-- | IkiWiki/Plugin/po.pm | 3 |
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") |