From 3ebe5c92d485d62ffbc1028e91ec89d52e9f7c41 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 26 Aug 2013 18:20:44 -0400 Subject: [PATCH] Write cookies before page generation, so changes take effect immediately. --- pages/settings.mako | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/settings.mako b/pages/settings.mako index a416566..37f3aa5 100644 --- a/pages/settings.mako +++ b/pages/settings.mako @@ -1,7 +1,7 @@ -<%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Settings - Earwig\'s Copyvio Detector'"/>\ <%namespace module="copyvios.settings" import="main"/>\ -<%! from json import dumps, loads %>\ <% bot, status, langs, projects = main(environ, headers, cookies) %>\ +<%include file="/support/header.mako" args="environ=environ, cookies=cookies, title='Settings - Earwig\'s Copyvio Detector'"/>\ +<%! from json import dumps, loads %>\ % if status:

${status}