(* 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
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
] in
Cocanwiki_ok.ok ~title:"Wiki created" ~buttons
- q "A new Wiki was created."
+ dbh (-1) q "A new Wiki was created."
)
let () =