(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_image.ml,v 1.4 2006/03/27 18:09:46 rich Exp $
+ * $Id: edit_image.ml,v 1.5 2006/12/06 09:46:57 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 some ALT text was supplied. *)
if string_is_whitespace alt then (
error ~title:"Missing Alt text" ~back_button:true
- dbh hostid q
+ r dbh hostid q
("You must supply Alt text describing the image. This is required " ^
"by accessibility laws and to allow search engines to discover the " ^
"content of images.");
let buttons = [ ok_button "/_images" ] in
ok ~title:"Description fields updated" ~buttons
- dbh hostid q "The description fields were updated."
+ r dbh hostid q "The description fields were updated."
let () =
register_script ~restrict:[CanEdit] run