summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-23 07:55:36 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-03-23 07:55:36 +0000
commit5230f4e50b5a21f1fca2edd89c981e944cdf05a0 (patch)
tree68966b5937067031d3121919673a557a7e988b6b
parente3b9e716d093497c1748f92f333f00a47a4272fa (diff)
slightly better latout
-rwxr-xr-xikiwiki12
1 files changed, 5 insertions, 7 deletions
diff --git a/ikiwiki b/ikiwiki
index 79b7eff90..6f66c5ea4 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -429,20 +429,18 @@ sub main () { #{{{
require IkiWiki::Setup;
setup();
}
-
- lockwiki();
-
- if ($config{wrapper}) {
+ elsif ($config{wrapper}) {
+ lockwiki();
require IkiWiki::Wrapper;
gen_wrapper();
- exit;
}
-
- if ($config{cgi}) {
+ elsif ($config{cgi}) {
+ lockwiki();
require IkiWiki::CGI;
cgi();
}
else {
+ lockwiki();
loadindex() unless $config{rebuild};
require IkiWiki::Render;
rcs_update();