Fixed to match ChriS's API changes to mod_caml.
[cocanwiki.git] / scripts / recently_visited.ml
index 6e689fc..2ef7904 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI - a wiki written in Objective CAML.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: recently_visited.ml,v 1.1 2004/10/10 16:14:43 rich Exp $
+ * $Id: recently_visited.ml,v 1.2 2004/10/30 10:16:10 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
@@ -32,7 +32,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ user =
 
   let userid =
     match user with
-       User (userid, _, _) -> userid
+       User (userid, _, _, _) -> userid
       | _ -> assert false in
 
   let sth = dbh#prepare_cached "select rv.url, p.title, rv.visit_time