From d4136aea8aa8968d2cd87b40e8d85301a3549323 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Fri, 25 Jun 2010 17:43:25 +0200 Subject: po: also filter sidebar translation pages --- IkiWiki/Plugin/po.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'IkiWiki') diff --git a/IkiWiki/Plugin/po.pm b/IkiWiki/Plugin/po.pm index 0b48726ea..6bf09b6d6 100644 --- a/IkiWiki/Plugin/po.pm +++ b/IkiWiki/Plugin/po.pm @@ -245,7 +245,10 @@ sub filter (@) { my $content = $params{content}; my @caller = caller(4); - return $content unless $caller[3] ne "IkiWiki::render"; + unless ($caller[3] eq "IkiWiki::render" || + $caller[3] eq 'IkiWiki::Plugin::sidebar::sidebar_content') { + return $content; + } if (istranslation($page) && ! alreadyfiltered($page, $destpage)) { $content = po_to_markup($page, $content); -- cgit v1.2.3