From: joey Date: Thu, 23 Mar 2006 22:11:05 +0000 (+0000) Subject: load index for all cgi scripts, fixes links on RecentChanges X-Git-Tag: 1.0~242 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ad4760ad783d19af0e115ffa570ec667d09e07ad;p=ikiwiki.git load index for all cgi scripts, fixes links on RecentChanges --- diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index 4a16856ec..29f3ecc89 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -271,8 +271,6 @@ 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)], diff --git a/ikiwiki b/ikiwiki index bd905a426..7b0a718d9 100755 --- a/ikiwiki +++ b/ikiwiki @@ -472,6 +472,7 @@ sub main () { #{{{ } elsif ($config{cgi}) { lockwiki(); + loadindex(); require IkiWiki::CGI; cgi(); }