diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-01-04 12:51:45 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-01-04 12:51:45 -0500 |
commit | 4c89a2693484d014c296131c58f662b62800b636 (patch) | |
tree | a5fd7e3c7e38125bfe6ee345685ef801de59d6bd /IkiWiki | |
parent | a20b07b54b66e36e88201788295b4c59211c3188 (diff) | |
download | ikiwiki-4c89a2693484d014c296131c58f662b62800b636.tar ikiwiki-4c89a2693484d014c296131c58f662b62800b636.tar.gz |
fix actions accounting
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Render.pm | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/IkiWiki/Render.pm b/IkiWiki/Render.pm index c82d8a35a..3ebb1a324 100644 --- a/IkiWiki/Render.pm +++ b/IkiWiki/Render.pm @@ -78,11 +78,14 @@ sub genpage ($$) { my $actions=0; if (length $config{cgiurl}) { - $template->param(editurl => cgiurl(do => "edit", page => $page)) - if IkiWiki->can("cgi_editpage"); - $template->param(prefsurl => cgiurl(do => "prefs")) - if exists $hooks{auth}; - $actions++; + if (IkiWiki->can("cgi_editpage")) { + $template->param(editurl => cgiurl(do => "edit", page => $page)); + $actions++; + } + if (exists $hooks{auth}) { + $template->param(prefsurl => cgiurl(do => "prefs")); + $actions++; + } } if (defined $config{historyurl} && length $config{historyurl}) { |