More thorough inclusion of the page bug. This should mean the page bug appears just...
[cocanwiki.git] / scripts / admin / create_host.ml
index 5ba2ea0..3d0a03a 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: create_host.ml,v 1.9 2005/03/31 14:24:04 rich Exp $
+ * $Id: create_host.ml,v 1.10 2005/11/24 14:54:14 rich Exp $
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -45,7 +45,7 @@ let run r =
   let title = trim title in
   if title = "" then (
     Cocanwiki_ok.error ~back_button:true ~title:"Bad title"
-      q "You must give a title for this Wiki.";
+      dbh (-1) q "You must give a title for this Wiki.";
   ) else (
     (* In theory we could verify characters in hostnames.  However
      * it's probably best to assume the sysadmin knows what they're up to
@@ -82,7 +82,7 @@ let run r =
     ] in
 
     Cocanwiki_ok.ok ~title:"Wiki created" ~buttons
-      q "A new Wiki was created."
+      dbh (-1) q "A new Wiki was created."
   )
 
 let () =