]> sipb.mit.edu Git - ikiwiki.git/commitdiff
load index for all cgi scripts, fixes links on RecentChanges
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 23 Mar 2006 22:11:05 +0000 (22:11 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Thu, 23 Mar 2006 22:11:05 +0000 (22:11 +0000)
IkiWiki/CGI.pm
ikiwiki

index 4a16856ec0314a8671179ee3bff163e2972651ce..29f3ecc89193959f25e1ae97572e3924fa6253a8 100644 (file)
@@ -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 bd905a42688e65eaf5ecd3c91c58cea0bb63bb89..7b0a718d9aca941ccae0d21792eb0b9d97bcfa94 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -472,6 +472,7 @@ sub main () { #{{{
        }
        elsif ($config{cgi}) {
                lockwiki();
+               loadindex();
                require IkiWiki::CGI;
                cgi();
        }