summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-06-13 19:28:57 +0000
committerDries Buytaert <dries@buytaert.net>2009-06-13 19:28:57 +0000
commitab158d82f05b9955d156abd83272a84e433cc65d (patch)
treed11169ffc65460a6dbf7dc8899adb57eeeafe02b /includes
parentf696a0ca4ad444f3cccc738da799b277f6737bde (diff)
downloadbrdo-ab158d82f05b9955d156abd83272a84e433cc65d.tar.gz
brdo-ab158d82f05b9955d156abd83272a84e433cc65d.tar.bz2
- Patch #221399 by smk-ka, jeffschuler, lilou, earnie et al: make it possible to enable blocks on 404 pages.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/common.inc b/includes/common.inc
index e1e2053d6..3ace4c637 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -378,8 +378,8 @@ function drupal_not_found() {
drupal_set_page_content($return);
$page = element_info('page');
- // To conserve CPU and bandwidth, omit the blocks.
- $page['#show_blocks'] = FALSE;
+ // Optionally omit the blocks to conserve CPU and bandwidth.
+ $page['#show_blocks'] = variable_get('site_404_blocks', FALSE);
print drupal_render_page($page);
}