From 7c57376a3f9a4cebfedb693dedb37131c922c7e3 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sun, 17 Jun 2012 15:23:35 +0200 Subject: benki.util: Fix order of definitions. --- src/mulk/benki/util.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/mulk/benki/util.clj b/src/mulk/benki/util.clj index dd118bb..46e187d 100644 --- a/src/mulk/benki/util.clj +++ b/src/mulk/benki/util.clj @@ -76,6 +76,9 @@ (defn link [& args] (resolve-uri (apply linkrel args))) +(defn redirect [x] + {:status 302, :headers {"Location" x}, :body ""}) + (defn call-with-auth [thunk] (if *user* (thunk) @@ -88,9 +91,6 @@ (defmacro with-auth [& body] `(call-with-auth (fn [] ~@body))) -(defn redirect [x] - {:status 302, :headers {"Location" x}, :body ""}) - (defn format-date [x] (.format (DateFormat/getDateTimeInstance DateFormat/FULL DateFormat/FULL) x)) -- cgit v1.2.3