All new templates. Site menu displays basically everywhere.
[cocanwiki.git] / scripts / search.ml
index 3288ccf..852402b 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI scripts.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: search.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: search.ml,v 1.3 2004/09/09 09:35:34 rich Exp $
  *)
 
 open Apache
@@ -15,7 +15,7 @@ open Cocanwiki
 let search : ('a -> 'b -> 'c, unit, string, string) format4 =
   "http://www.google.com/search?q=site:%s+%s"
 
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
   let query = q#param "q" in
 
   let query = sprintf search (escape_url hostname) (escape_url query) in