From 384327bfd0b3b0362a61f30f81b06895238ee360 Mon Sep 17 00:00:00 2001 From: joey Date: Thu, 23 Mar 2006 07:51:52 +0000 Subject: proper main sub and loadindex optimisation for cgis --- IkiWiki/CGI.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki') 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(); } -- cgit v1.2.3