projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
proper main sub and loadindex optimisation for cgis
[ikiwiki.git]
/
IkiWiki
/
CGI.pm
diff --git
a/IkiWiki/CGI.pm
b/IkiWiki/CGI.pm
index 3ac984d309448596e3ef60e386a732602b2ff404..4a16856ec0314a8671179ee3bff163e2972651ce 100644
(file)
--- a/
IkiWiki/CGI.pm
+++ b/
IkiWiki/CGI.pm
@@
-271,6
+271,8
@@
sub cgi_editpage ($$) { #{{{
my $q=shift;
my $session=shift;
+ loadindex();
+
eval q{use CGI::FormBuilder};
my $form = CGI::FormBuilder->new(
fields => [qw(do rcsinfo from page content comments)],
@@
-446,7
+448,6
@@
sub cgi_editpage ($$) { #{{{
}
else {
require IkiWiki::Render;
- loadindex();
refresh();
saveindex();
}