git.annexia.org
/
cocanwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed some bitrot and some unused variables.
[cocanwiki.git]
/
scripts
/
invite_user.ml
diff --git
a/scripts/invite_user.ml
b/scripts/invite_user.ml
index
19bd170
..
8f3a09a
100644
(file)
--- a/
scripts/invite_user.ml
+++ b/
scripts/invite_user.ml
@@
-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.
(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: invite_user.ml,v 1.
7 2006/03/28 13:20:0
0 rich Exp $
+ * $Id: invite_user.ml,v 1.
8 2006/07/26 13:12:1
0 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
*
* 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
@@
-39,10
+39,8
@@
let run r (q : cgi) dbh hostid {hostname = hostname} user =
let emails = Pcre.split ~rex:split_re emails in
(* This guy's got no friends ... *)
let emails = Pcre.split ~rex:split_re emails in
(* This guy's got no friends ... *)
- if emails = [] then
(
+ if emails = [] then
q#redirect ("http://" ^ hostname ^ "/");
q#redirect ("http://" ^ hostname ^ "/");
- return ()
- );
let userid, username, email = match user with
User (userid, username, _, prefs) -> userid, username, prefs.email
let userid, username, email = match user with
User (userid, username, _, prefs) -> userid, username, prefs.email