diff options
author | intrigeri <intrigeri@boum.org> | 2010-06-25 17:43:25 +0200 |
---|---|---|
committer | intrigeri <intrigeri@boum.org> | 2010-06-25 17:43:25 +0200 |
commit | d4136aea8aa8968d2cd87b40e8d85301a3549323 (patch) | |
tree | 9d8201174988a38f6107073cd82e905fcd333ea4 /IkiWiki | |
parent | d877b9644bcfbbfc5eaf3f7fc13cb96ecda946c9 (diff) |
po: also filter sidebar translation pages
Diffstat (limited to 'IkiWiki')
-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 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); |