(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_host_settings.ml,v 1.2 2004/09/23 11:56:47 rich Exp $
+ * $Id: edit_host_settings.ml,v 1.3 2004/09/24 16:30:07 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 create_account_anon = q#param_true "create_account_anon" in
let theme_css = q#param "theme_css" in
let feedback_email = q#param "feedback_email" in
+ let mailing_list = q#param_true "mailing_list" in
let theme_css = if theme_css = "" then `Null else `String theme_css in
let feedback_email =
(* Update the database. *)
let sth = dbh#prepare_cached "update hosts set edit_anon = ?,
create_account_anon = ?, theme_css = ?,
- feedback_email = ?
+ feedback_email = ?, mailing_list = ?
where id = ?" in
sth#execute [`Bool edit_anon; `Bool create_account_anon;
- theme_css; feedback_email;
+ theme_css; feedback_email; `Bool mailing_list;
`Int hostid];
dbh#commit ();