Added the framework to allow us to populate standards parts of the
[cocanwiki.git] / scripts / edit_user_form.ml
index 7a2e63f..9a08c8a 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI scripts.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_user_form.ml,v 1.1 2004/09/08 12:45:38 rich Exp $
+ * $Id: edit_user_form.ml,v 1.2 2004/09/08 15:46:53 rich Exp $
  *)
 
 open Apache
@@ -13,9 +13,9 @@ open Cocanwiki
 open Cocanwiki_template
 open Cocanwiki_date
 
-let template = get_template "edit_user_form.html"
-
 let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
+  let template = get_template dbh hostid "edit_user_form.html" in
+
   let userid = int_of_string (q#param "userid") in
 
   let sth =