summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
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);