diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-23 22:11:05 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-23 22:11:05 +0000 |
commit | ad4760ad783d19af0e115ffa570ec667d09e07ad (patch) | |
tree | 8b1d264a2c12a42c7f49ea9a28290bc2628c62d1 | |
parent | 4a4c8680b19029db1942bbb24473ea99227746a6 (diff) |
load index for all cgi scripts, fixes links on RecentChanges
-rw-r--r-- | IkiWiki/CGI.pm | 2 | ||||
-rwxr-xr-x | ikiwiki | 1 |
2 files changed, 1 insertions, 2 deletions
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)], @@ -472,6 +472,7 @@ sub main () { #{{{ } elsif ($config{cgi}) { lockwiki(); + loadindex(); require IkiWiki::CGI; cgi(); } |