(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: stats_top.ml,v 1.1 2004/09/23 15:16:21 rich Exp $
+ * $Id: stats_top.ml,v 1.3 2006/03/27 18:09:47 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
open Cocanwiki_template
open Cocanwiki_server_settings
-let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
+let run r (q : cgi) dbh hostid
+ { canonical_hostname = canonical_hostname } _ =
let template = get_template dbh hostid "stats_top.html" in
let page = q#param "page" in
| Some s -> s in
template#set "stats_page" stats_page;
- template#set "hostname" hostname;
+ template#set "hostname" canonical_hostname;
template#set "page" page;
q#template template