All new templates. Site menu displays basically everywhere.
[cocanwiki.git] / scripts / restore_form.ml
index 41e7c4a..4eb681b 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI scripts.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: restore_form.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
+ * $Id: restore_form.ml,v 1.6 2004/09/09 09:35:33 rich Exp $
  *)
 
 open Apache
@@ -14,9 +14,9 @@ open Cocanwiki_template
 open Cocanwiki_ok
 open Cocanwiki_diff
 
-let template = get_template "restore_form.html"
+let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ =
+  let template = get_template dbh hostid "restore_form.html" in
 
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
   (* Parameters. *)
   let page = q#param "page" in
   let old_version = int_of_string (q#param "version") in