summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-28 19:46:00 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-08-28 19:46:00 +0000
commit1aac0b5a60b8445422f44325870cbf6c28c57196 (patch)
tree9d6f9faa93aab2c45183057a0372c10b03e64f63 /IkiWiki/Plugin
parent1aeb64e14858dc7dbce6ac553fc6dc43efb29fae (diff)
don't add actions if all empty
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/inline.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm
index 6518be794..724cdf315 100644
--- a/IkiWiki/Plugin/inline.pm
+++ b/IkiWiki/Plugin/inline.pm
@@ -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));
}
}