More thorough inclusion of the page bug. This should mean the page bug appears just...
[cocanwiki.git] / scripts / user_prefs.ml
index 8884c83..59471fb 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: user_prefs.ml,v 1.5 2005/03/31 14:24:04 rich Exp $
+ * $Id: user_prefs.ml,v 1.6 2005/11/24 14:54:13 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
@@ -99,7 +99,8 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname=hostname} user =
 
   let buttons = [ ok_button "/_userprefs" ] in
   ok ~title:"Preferences updated" ~buttons
-    q ("Your user preferences were updated.  " ^
+    dbh hostid q
+    ("Your user preferences were updated.  " ^
        if confirm_needed then
         ("Because you changed your email address, we have sent a " ^
          "confirmation email to your new address.  You will need to " ^