projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d877b96
)
po: also filter sidebar translation pages
author
intrigeri
<intrigeri@boum.org>
Fri, 25 Jun 2010 15:43:25 +0000
(17:43 +0200)
committer
intrigeri
<intrigeri@boum.org>
Fri, 25 Jun 2010 15:43:25 +0000
(17:43 +0200)
IkiWiki/Plugin/po.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Plugin/po.pm
b/IkiWiki/Plugin/po.pm
index 0b48726ea91b1c33d13e92d67706f793e8e0b02c..6bf09b6d660cd97f76c28266ad159c2ceb930b11 100644
(file)
--- 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);