X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fedit.ml;h=effef45720f0cd4b7dd0ebef385b8045006f787d;hb=1f125fd7a6794f352f30de71a3905d5356a07008;hp=0d22746895aa31beee72a99ddc6898683f00605c;hpb=0aace62757cbb1346ce1d78ed33526baf80169bd;p=cocanwiki.git diff --git a/scripts/edit.ml b/scripts/edit.ml index 0d22746..effef45 100644 --- a/scripts/edit.ml +++ b/scripts/edit.ml @@ -1,7 +1,7 @@ (* COCANWIKI scripts. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: edit.ml,v 1.5 2004/09/08 13:09:05 rich Exp $ + * $Id: edit.ml,v 1.7 2004/09/09 09:35:33 rich Exp $ *) open Apache @@ -18,9 +18,6 @@ open Cocanwiki_emailnotify open Cocanwiki_diff open Cocanwiki_strings -let template = get_template "edit.html" -let template_conflict = get_template "edit_conflict.html" - (* We keep an "internal model" of the page - see build_internal_model () * below. *) @@ -33,7 +30,10 @@ type model_t = { * for each section. *) } -let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ = +let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = + let template = get_template dbh hostid "edit.html" in + let template_conflict = get_template dbh hostid "edit_conflict.html" in + (* Workaround bugs in IE, specifically lack of support for