summaryrefslogtreecommitdiff
path: root/src/utils.clj
diff options
context:
space:
mode:
authorsostler <sbostler@gmail.com>2010-04-14 18:52:24 -0400
committersostler <sbostler@gmail.com>2010-04-14 18:52:24 -0400
commitf0ab9c28ec3cdc0f347081e63e2448750d073d46 (patch)
tree03090b6287c75da498f1858877c5bc520f0ef2a6 /src/utils.clj
parent486946cd5fd8eda8824f1752101fb010c31396d9 (diff)
Added muting emails
Diffstat (limited to 'src/utils.clj')
-rwxr-xr-xsrc/utils.clj5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/utils.clj b/src/utils.clj
index da4d4be..d6a95e5 100755
--- a/src/utils.clj
+++ b/src/utils.clj
@@ -29,6 +29,9 @@
(defn swap [f]
(fn [& more] (apply f (reverse more))))
+(defn join [lst int]
+ (apply str (interpose int lst)))
+
(def YYYYMMDD-format (new SimpleDateFormat "yyyyMMdd"))
(defn today []
@@ -160,6 +163,6 @@
(session :is_admin))
(defmacro if-vip [e]
- "Evaluates expr if user is vipm otherwise returns 404 string. Can only be used
+ "Evaluates expr if user is vip otherwise returns 404. Can only be used
where session is defined."
`(if (is-vip? ~'session) ~e (unknown-page)))