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 {
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 "";