From: intrigeri Date: Fri, 25 Jun 2010 15:43:25 +0000 (+0200) Subject: po: also filter sidebar translation pages X-Git-Tag: 3.20100722~8^2~8^2~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d4136aea8aa8968d2cd87b40e8d85301a3549323;p=ikiwiki.git po: also filter sidebar translation pages --- 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);