More thorough inclusion of the page bug. This should mean the page bug appears just...
[cocanwiki.git] / scripts / invite_user_confirm_form.ml
index a61726d..456e720 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: invite_user_confirm_form.ml,v 1.2 2004/10/23 15:00:15 rich Exp $
+ * $Id: invite_user_confirm_form.ml,v 1.3 2005/11/24 14:54:12 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
@@ -43,9 +43,10 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
     with
        Not_found ->
          error ~title:"Already signed up"
-           q ("It looks like you have already used your invitation.  If " ^
-              "you cannot get to your account, please contact the " ^
-              "administrator.");
+           dbh hostid q
+           ("It looks like you have already used your invitation.  If " ^
+            "you cannot get to your account, please contact the " ^
+            "administrator.");
          return () in
 
   (* Update the template so that the user can set their preferred password. *)