aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2009-08-28 16:34:58 +0200
committerintrigeri <intrigeri@boum.org>2009-08-28 16:34:58 +0200
commit646c9a4c95a480544d63c161651c45b3b029e598 (patch)
tree364d024792446821436133ae0cda7b0279377384 /IkiWiki/Plugin
parentbe954ff3cbc34d8b96a10f64c1279ce6b2f02671 (diff)
downloadikiwiki-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.pm5
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;