# HG changeset patch # User Sverre Rabbelier # Date 1252709998 -7200 # Node ID 691735924efb93116eaae4db2600ab921bb02f7b # Parent ac5f77cd60467a0a646297358837af803db21b1f 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. diff -r ac5f77cd6046 -r 691735924efb 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)