don't add actions if all empty

master
joey 2006-08-28 19:46:00 +00:00
parent 1aeb64e148
commit 1aac0b5a60
1 changed files with 2 additions and 1 deletions

View File

@ -108,11 +108,12 @@ sub preprocess_inline (@) { #{{{
if ($actions) {
my $file = $pagesources{$page};
my $type = pagetype($file);
$template->param(have_actions => 1);
if ($config{discussion}) {
$template->param(have_actions => 1);
$template->param(discussionlink => htmllink($page, $page, "Discussion", 1, 1));
}
if (length $config{cgiurl} && defined $type) {
$template->param(have_actions => 1);
$template->param(editurl => cgiurl(do => "edit", page => $page));
}
}