aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/sidebar.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-04-15 17:50:43 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-04-15 17:50:43 -0400
commit4c6f5a48bcfc2462a915387515bfa39b9239a7da (patch)
treeaa87f1182c0b5e3f133b279f1c94bd0d4e89ee30 /IkiWiki/Plugin/sidebar.pm
parent4bbbd77a48f9c3188c97637d4d4b0d503fc1738e (diff)
downloadikiwiki-4c6f5a48bcfc2462a915387515bfa39b9239a7da.tar
ikiwiki-4c6f5a48bcfc2462a915387515bfa39b9239a7da.tar.gz
fix sidebar directive parameter handling
Diffstat (limited to 'IkiWiki/Plugin/sidebar.pm')
-rw-r--r--IkiWiki/Plugin/sidebar.pm6
1 files changed, 2 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/sidebar.pm b/IkiWiki/Plugin/sidebar.pm
index f706480ca..808f0bed2 100644
--- a/IkiWiki/Plugin/sidebar.pm
+++ b/IkiWiki/Plugin/sidebar.pm
@@ -33,13 +33,11 @@ my %pagesidebar;
sub preprocess (@) {
my %params=@_;
- my $content=shift;
- shift;
my $page=$params{page};
return "" unless $page eq $params{destpage};
- if (! defined $content) {
+ if (! defined $params{content}) {
$pagesidebar{$page}=undef;
}
else {
@@ -50,7 +48,7 @@ sub preprocess (@) {
IkiWiki::htmlize($page, $page, $type,
IkiWiki::linkify($page, $page,
IkiWiki::preprocess($page, $page,
- IkiWiki::filter($page, $page, $content))));
+ IkiWiki::filter($page, $page, $params{content}))));
}
return "";