Fix broken maintenance mode
Maintenance mode has been broken since r7fe19ebfe0d3 (Thu Jun 4)
"Display caught errors on the page itself", fix it by passing the
site entity, rather than the site module to isActivePeriod.
--- a/app/soc/views/helper/responses.py Sat Sep 12 00:36:49 2009 +0200
+++ b/app/soc/views/helper/responses.py Sat Sep 12 00:59:58 2009 +0200
@@ -144,7 +144,7 @@
context['site_name'] = settings.site_name
context['site_notice'] = settings.site_notice
context['tos_link'] = redirects.getToSRedirect(settings)
- context['in_maintenance'] = timeline.isActivePeriod(site, 'maintenance')
+ context['in_maintenance'] = timeline.isActivePeriod(settings, 'maintenance')
core.setRequestValue('context', context)