X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fstats_top.ml;h=cf16da4394a3d884ae19ad6f2f505352733a5c82;hb=89e8d5757ca111d16ce3dfcc1ce4f2c00a119c85;hp=48ddea937b256c4af2119df5ea103a55df03e4e0;hpb=03be670f1c2a13931f1b824f22cc9cebe4d61216;p=cocanwiki.git diff --git a/scripts/stats_top.ml b/scripts/stats_top.ml index 48ddea9..cf16da4 100644 --- a/scripts/stats_top.ml +++ b/scripts/stats_top.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * 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.2 2004/10/23 16:34:58 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 @@ -28,7 +28,8 @@ open Cocanwiki open Cocanwiki_template open Cocanwiki_server_settings -let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = +let run r (q : cgi) (dbh : Dbi.connection) hostid + { canonical_hostname = canonical_hostname } _ = let template = get_template dbh hostid "stats_top.html" in let page = q#param "page" in @@ -40,7 +41,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ = | 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