projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dd9b65
)
po: (hopefully) fixed WikiLink to self with po_link_to=default
author
intrigeri
<intrigeri@boum.org>
Wed, 26 Aug 2009 05:02:29 +0000
(07:02 +0200)
committer
intrigeri
<intrigeri@boum.org>
Wed, 26 Aug 2009 05:02:29 +0000
(07:02 +0200)
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 41490699914ef632647ab593da91a1aa90c648d0..ea0e5646761722542c8a66f81289831ce58b6272 100644
(file)
--- 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")