More thorough inclusion of the page bug. This should mean the page bug appears just...
[cocanwiki.git] / scripts / email_change.ml
index 702bee8..fe7e798 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: email_change.ml,v 1.1 2004/10/23 15:00:14 rich Exp $
+ * $Id: email_change.ml,v 1.2 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,7 +43,8 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
     with
        Not_found ->
          error ~title:"Already verified"
-           q ("It looks like you have already verified this email address.");
+           dbh hostid q
+           ("It looks like you have already verified this email address.");
          return () in
 
   (* Update the database. *)
@@ -57,7 +58,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
   dbh#commit ();
 
   ok ~title:"Email address verified"
-    q "Thank you for verifying your new email address."
+    dbh hostid q "Thank you for verifying your new email address."
 
 let () =
   register_script run