fix actions accounting

master
Joey Hess 2010-01-04 12:51:45 -05:00
parent a20b07b54b
commit 4c89a26934
1 changed files with 8 additions and 5 deletions

View File

@ -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}) {