(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_sitemenu.ml,v 1.11 2006/03/27 19:10:29 rich Exp $
+ * $Id: edit_sitemenu.ml,v 1.12 2006/07/26 13:12:10 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
(* Check for errors in the model. *)
let check_for_errors model =
let errors = ref [] in
- let add_error msg = errors := msg :: !errors in
+(* let add_error msg = errors := msg :: !errors in *)
let get_errors () = List.rev !errors in
(* XXX Not implemented yet. *)
* page - the page URL opened newly for editing.
*)
if q#param_true "inedit" then (
- if q#param_true "cancel" then (
+ if q#param_true "cancel" then
cancel ();
- return ()
- );
if q#param_true "save" then (
let ok = try_save () in
if ok then return () (* ... else fall through *)