From eba2dee941c18b3a1bd9c8af52c01ba7b5b46a64 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Wed, 12 Nov 2008 15:04:50 +0100 Subject: po: compute internal links from a slave page relative to its master page e.g. a link appearing on a slave page links to its masterpage's subpages. Signed-off-by: intrigeri --- IkiWiki/Plugin/po.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 492b05c47..45ed96c65 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -390,7 +390,7 @@ sub mybestlink ($$) { #{{{ my $page=shift; my $link=shift; - my $res=$origsubs{'bestlink'}->($page, $link); + my $res=$origsubs{'bestlink'}->(masterpage($page), $link); if (length $res && ($config{po_link_to} eq "current" || $config{po_link_to} eq "negotiated") && istranslatable($res) -- cgit v1.2.3