(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: sitemap.ml,v 1.1 2004/09/07 10:14:09 rich Exp $
+ * $Id: sitemap.ml,v 1.3 2004/09/07 14:58:34 rich Exp $
*)
open Apache
open Cgi
open Printf
-open Merjisforwiki
-
open Cocanwiki
+open Cocanwiki_template
+open Cocanwiki_date
+open Cocanwiki_strings
let template = get_template "sitemap.html"
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname) _ =
+let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
(* Pull out all the current pages, and a bit of content from each. *)
let sth = dbh#prepare_cached "select p.url, p.url = 'index',
p.title, p.description,