X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fmailing_list_confirm.ml;h=4c181ceaf8f96bc9d774a14af35701b15b1ae561;hb=799d629c5af725596497b7df2055db6ac6da91b7;hp=2f8ff0cd315e3a2f0d8a96d003e6b18a2328b705;hpb=8d82e370518cb6d936682c6550d0c0bf0b0e0b35;p=cocanwiki.git diff --git a/scripts/mailing_list_confirm.ml b/scripts/mailing_list_confirm.ml index 2f8ff0c..4c181ce 100644 --- a/scripts/mailing_list_confirm.ml +++ b/scripts/mailing_list_confirm.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: mailing_list_confirm.ml,v 1.1 2004/09/24 16:41:16 rich Exp $ + * $Id: mailing_list_confirm.ml,v 1.2 2004/09/24 16:45:02 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 @@ -35,7 +35,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = where hostid = ? and pending = ?" in sth#execute [`Int hostid; `String pending]; - let page = + let email = try sth#fetch1string () with @@ -52,7 +52,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = dbh#commit (); (* Confirmed. *) - let buttons = [ ok_button ("/" ^ page) ] in + let buttons = [ ok_button "/" ] in ok ~buttons ~title:"Confirmed" q ("Your email address has been confirmed. " ^ "You are now on our mailing list.")