+csv dep for PG'OCaml.
[cocanwiki.git] / scripts / preview.ml
index df0da8d..4e0e9ea 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: preview.ml,v 1.7 2004/12/20 11:57:28 rich Exp $
+ * $Id: preview.ml,v 1.9 2006/07/27 16:46:55 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,9 +35,9 @@ open Cocanwiki
  * start-up SQL as possible.
  *)
 
-let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
+let run r (q : cgi) dbh hostid _ _ =
   let content = q#param "content" in
-  let xhtml = Wikilib.xhtml_of_content dbh hostid content in
+  let xhtml = Wikilib.xhtml_of_content dbh hostid content in
 
   q#header ~content_type:"text/html; charset=utf-8" ();
   ignore (print_string r xhtml)