X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fpreview.ml;h=10e8a4acfc31d5f8dd31bf1d9a9a0192407db334;hb=65966a769fea12308cf5a1bccee53d80483ee444;hp=b1b65af1f7f86ececa477ccf779eadd315bae2d6;hpb=11b93485a29771f4d826c50d9efc6d3607dfa50f;p=cocanwiki.git diff --git a/scripts/preview.ml b/scripts/preview.ml index b1b65af..10e8a4a 100644 --- a/scripts/preview.ml +++ b/scripts/preview.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: preview.ml,v 1.4 2004/09/09 12:21:22 rich Exp $ + * $Id: preview.ml,v 1.6 2004/10/23 12:00:24 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 @@ -34,7 +34,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = let xhtml = Wikilib.xhtml_of_content dbh hostid content in q#header ~content_type:"text/html; charset=utf-8" (); - print_string r xhtml + ignore (print_string r xhtml) let () = - register_script run + register_script ~restrict:[CanView] run