Index: includes/common.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/common.inc,v retrieving revision 1.917 diff -u -r1.917 common.inc --- includes/common.inc 3 Jun 2009 02:50:21 -0000 1.917 +++ includes/common.inc 4 Jun 2009 06:50:45 -0000 @@ -373,7 +373,7 @@ drupal_set_page_content($return); $page = element_info('page'); // To conserve CPU and bandwidth, omit the blocks. - $page['#show_blocks'] = FALSE; + $page['#show_blocks'] = variable_get('site_404_blocks', FALSE); print drupal_render_page($page); } Index: modules/system/system.admin.inc =================================================================== RCS file: /cvs/drupal/drupal/modules/system/system.admin.inc,v retrieving revision 1.152 diff -u -r1.152 system.admin.inc --- modules/system/system.admin.inc 2 Jun 2009 06:58:17 -0000 1.152 +++ modules/system/system.admin.inc 4 Jun 2009 06:50:47 -0000 @@ -1218,7 +1218,7 @@ '#title' => t('Default 403 (access denied) page'), '#default_value' => '', '#size' => 40, - '#description' => t('This page is displayed when the requested document is denied to the current user. If unsure, specify nothing.'), + '#description' => t('This page is displayed when the requested document is denied to the current user. Leave blank to display a generic "access denied" page.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=') ); $form['site_404'] = array( @@ -1226,9 +1226,15 @@ '#title' => t('Default 404 (not found) page'), '#default_value' => '', '#size' => 40, - '#description' => t('This page is displayed when no other content matches the requested document. If unsure, specify nothing.'), + '#description' => t('This page is displayed when no other content matches the requested document. Leave blank to display a generic "page not found" page.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=') ); + $form['site_404_blocks'] = array( + '#type' => 'checkbox', + '#title' => t('Display blocks on default 404 (not found) page'), + '#description' => t('Render all blocks on the default 404 (not found) page. Disabling blocks can help with performance but might leave users with a less functional site.'), + '#default_value' => variable_get('site_404_blocks', 0) + ); $form['#validate'][] = 'system_site_information_settings_validate'; return system_settings_form($form);