summaryrefslogtreecommitdiffstats
path: root/askbot/middleware
diff options
context:
space:
mode:
authorHrishi <hrishi@Hrishi-Mobile-Workstation.(none)>2011-09-20 00:54:19 +0530
committerHrishi <hrishi@Hrishi-Mobile-Workstation.(none)>2011-09-20 00:54:19 +0530
commit94641e2915f2d0b765119c4b142dbdd603358fc6 (patch)
tree4147dfe693a8954168b825ce76e317306eefbb3d /askbot/middleware
parent094b354a0725c0d75c1565541e5fed50f9950ed8 (diff)
downloadaskbot-94641e2915f2d0b765119c4b142dbdd603358fc6.tar.gz
askbot-94641e2915f2d0b765119c4b142dbdd603358fc6.tar.bz2
askbot-94641e2915f2d0b765119c4b142dbdd603358fc6.zip
made the welcome message for anonymous users editable via admin settings
Diffstat (limited to 'askbot/middleware')
-rw-r--r--askbot/middleware/anon_user.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/askbot/middleware/anon_user.py b/askbot/middleware/anon_user.py
index 06e9dfd0..fe1ddf14 100644
--- a/askbot/middleware/anon_user.py
+++ b/askbot/middleware/anon_user.py
@@ -31,6 +31,5 @@ class ConnectToSessionMessagesMiddleware(object):
#also set the first greeting one time per session only
if 'greeting_set' not in request.session:
request.session['greeting_set'] = True
- msg = _(const.GREETING_FOR_ANONYMOUS_USER) \
- % askbot_settings.GREETING_URL
+ msg = _(askbot_settings.GREETING_FOR_ANONYMOUS_USER)
request.user.message_set.create(message=msg)