aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-23 07:51:52 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-23 07:51:52 +0000
commit384327bfd0b3b0362a61f30f81b06895238ee360 (patch)
tree771eaedb0a9d2d572c06d78fb15d7d17608eeca3 /IkiWiki
parentbb0193aff3e044e93006ee7ad0aaef1a82adaeee (diff)
downloadikiwiki-384327bfd0b3b0362a61f30f81b06895238ee360.tar
ikiwiki-384327bfd0b3b0362a61f30f81b06895238ee360.tar.gz
proper main sub and loadindex optimisation for cgis
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/CGI.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm
index 3ac984d30..4a16856ec 100644
--- 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();
}