projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a20b07b
)
fix actions accounting
author
Joey Hess
<joey@gnu.kitenet.net>
Mon, 4 Jan 2010 17:51:45 +0000
(12:51 -0500)
committer
Joey Hess
<joey@gnu.kitenet.net>
Mon, 4 Jan 2010 17:51:45 +0000
(12:51 -0500)
IkiWiki/Render.pm
patch
|
blob
|
history
diff --git
a/IkiWiki/Render.pm
b/IkiWiki/Render.pm
index c82d8a35a913b9c233f2fbb49d57ffb37602106e..3ebb1a324d8a3118b54f0d7c6360587892917b65 100644
(file)
--- a/
IkiWiki/Render.pm
+++ b/
IkiWiki/Render.pm
@@
-78,11
+78,14
@@
sub genpage ($$) {
my $actions=0;
if (length $config{cgiurl}) {
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}) {
}
if (defined $config{historyurl} && length $config{historyurl}) {