X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fpage_rss.ml;h=cd799c4fb8fa8a39dad018565ba2863ef86e8e3f;hb=89e8d5757ca111d16ce3dfcc1ce4f2c00a119c85;hp=b9e1df0e0dd2a5ce46512da074d5751cbb2bd623;hpb=34f804bb80902490c619e85759ab110fc440a838;p=cocanwiki.git diff --git a/scripts/page_rss.ml b/scripts/page_rss.ml index b9e1df0..cd799c4 100644 --- a/scripts/page_rss.ml +++ b/scripts/page_rss.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: page_rss.ml,v 1.1 2004/11/01 17:46:21 rich Exp $ + * $Id: page_rss.ml,v 1.2 2004/11/02 11:05:59 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,7 +35,7 @@ open Cocanwiki open Cocanwiki_template let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} _ = - let template = get_template dbh hostid "rss.xml" in + let template = get_template dbh hostid "page_rss.xml" in let page = q#param "page" in let page = if page = "" then "index" else page in @@ -83,7 +83,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} _ = template#table "sections" sections; - q#template ~content_type:"text/xml" template + q#template ~content_type:"application/rss+xml" template let () = register_script ~restrict:[CanView] run