]> sipb.mit.edu Git - ikiwiki.git/commitdiff
po: also filter sidebar translation pages
authorintrigeri <intrigeri@boum.org>
Fri, 25 Jun 2010 15:43:25 +0000 (17:43 +0200)
committerintrigeri <intrigeri@boum.org>
Fri, 25 Jun 2010 15:43:25 +0000 (17:43 +0200)
IkiWiki/Plugin/po.pm

index 0b48726ea91b1c33d13e92d67706f793e8e0b02c..6bf09b6d660cd97f76c28266ad159c2ceb930b11 100644 (file)
@@ -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);