Fix broken maintenance mode
authorSverre Rabbelier <srabbelier@gmail.com>
Sat, 12 Sep 2009 00:59:58 +0200
changeset 2899 691735924efb
parent 2898 ac5f77cd6046
child 2900 c9a723492dd5
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.
app/soc/views/helper/responses.py
--- 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)