diff options
author | intrigeri <intrigeri@boum.org> | 2009-08-28 16:34:58 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2009-08-28 16:34:58 +0200 |
commit | 646c9a4c95a480544d63c161651c45b3b029e598 (patch) | |
tree | 364d024792446821436133ae0cda7b0279377384 /IkiWiki/Plugin | |
parent | be954ff3cbc34d8b96a10f64c1279ce6b2f02671 (diff) | |
download | ikiwiki-646c9a4c95a480544d63c161651c45b3b029e598.tar ikiwiki-646c9a4c95a480544d63c161651c45b3b029e598.tar.gz |
po: fix link() pagespec when used on translation pages
Signed-off-by: intrigeri <intrigeri@boum.org>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/po.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 14c7318fe..21e3b8e37 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -566,9 +566,12 @@ sub mybestlink ($$) { my $link=shift; my $res=$origsubs{'bestlink'}->(masterpage($page), $link); + my @caller = caller(1); if (length $res && istranslatable($res) - && istranslation($page)) { + && istranslation($page) + && !(exists $caller[3] && defined $caller[3] + && ($caller[3] eq "IkiWiki::PageSpec::match_link"))) { return $res . "." . lang($page); } return $res; |