aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2010-06-25 17:43:25 +0200
committerintrigeri <intrigeri@boum.org>2010-06-25 17:43:25 +0200
commitd4136aea8aa8968d2cd87b40e8d85301a3549323 (patch)
tree9d8201174988a38f6107073cd82e905fcd333ea4 /IkiWiki
parentd877b9644bcfbbfc5eaf3f7fc13cb96ecda946c9 (diff)
downloadikiwiki-d4136aea8aa8968d2cd87b40e8d85301a3549323.tar
ikiwiki-d4136aea8aa8968d2cd87b40e8d85301a3549323.tar.gz
po: also filter sidebar translation pages
Diffstat (limited to 'IkiWiki')
-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 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);