X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/cddc335b2bd98a302b261200c12d61b05476d727..8d9ec24232ede981face0c3eafbce71b74c4725a:/ikiwiki.in diff --git a/ikiwiki.in b/ikiwiki.in index 9d1f6b520..3bb881c43 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -29,6 +29,7 @@ sub getconfig () { #{{{ "render=s" => \$config{render}, "wrappers!" => \$config{wrappers}, "usedirs!" => \$config{usedirs}, + "prefix-directives!" => \$config{prefix_directives}, "getctime" => \$config{getctime}, "numbacklinks=i" => \$config{numbacklinks}, "rcs=s" => \$config{rcs}, @@ -121,9 +122,11 @@ sub main () { #{{{ gen_wrapper(); } elsif ($config{cgi}) { - loadindex(); require IkiWiki::CGI; - cgi(); + eval {cgi()}; + if ($@) { + cgierror($@); + } } elsif ($config{render}) { require IkiWiki::Render;