--- drupal-7\common.inc 2008-08-21 15:36:36.000000000 -0400 +++ common.inc 2008-08-26 15:28:32.107125000 -0400 @@ -358,7 +358,7 @@ function drupal_not_found() { } // To conserve CPU and bandwidth, omit the blocks. - print theme('page', $return, FALSE); + print theme('page', $return, , variable_get('site_404_full', FALSE)); } /** @@ -385,7 +385,7 @@ function drupal_access_denied() { drupal_set_title(t('Access denied')); $return = t('You are not authorized to access this page.'); } - print theme('page', $return); + print theme('page', $return, variable_get('site_403_full', TRUE)); } /** --- drupal-7\system.admin.inc 2008-08-21 15:36:38.000000000 -0400 +++ system.admin.inc 2008-08-26 15:26:11.200875000 -0400 @@ -1292,6 +1292,13 @@ function system_error_reporting_settings '#description' => t('This page is displayed when the requested document is denied to the current user. If unsure, specify nothing.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=') ); + + $form['site_403_full'] = array( + '#type' => 'checkbox', + '#title' => t('Full 403 (access denied) page'), + '#default_value' => variable_get('site_403_full', TRUE), + '#description' => t('Display the 403 page with menus and blocks. If you don\'t use this, make sure your error page provides a means for the user to return to the site. Turning this off will save on CPU and bandwidth in the event of this error.'), + ); $form['site_404'] = array( '#type' => 'textfield', @@ -1301,6 +1308,13 @@ function system_error_reporting_settings '#description' => t('This page is displayed when no other content matches the requested document. If unsure, specify nothing.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=') ); + + $form['site_404_full'] = array( + '#type' => 'checkbox', + '#title' => t('Full 404 (not found) page'), + '#default_value' => variable_get('site_404_full', FALSE), + '#description' => t('Display the 404 page with menus and blocks. If you don\'t use this, make sure your error page provides a means for the user to return to the site. Turning this off will save on CPU and bandwidth in the event of this error.'), + ); $form['error_level'] = array( '#type' => 'select', '#title' => t('Error reporting'), '#default_value' => variable_get('error_level', 1),  --- drupal-7\system.admin.inc 2008-08-21 15:36:38.000000000 -0400 +++ system.admin.inc 2008-08-26 15:26:11.200875000 -0400 @@ -1292,6 +1292,13 @@ function system_error_reporting_settings '#description' => t('This page is displayed when the requested document is denied to the current user. If unsure, specify nothing.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=') ); + + $form['site_403_full'] = array( + '#type' => 'checkbox', + '#title' => t('Full 403 (access denied) page'), + '#default_value' => variable_get('site_403_full', TRUE), + '#description' => t('Display the 403 page with menus and blocks. If you don\'t use this, make sure your error page provides a means for the user to return to the site. Turning this off will save on CPU and bandwidth in the event of this error.'), + ); $form['site_404'] = array( '#type' => 'textfield', @@ -1301,6 +1308,13 @@ function system_error_reporting_settings '#description' => t('This page is displayed when no other content matches the requested document. If unsure, specify nothing.'), '#field_prefix' => url(NULL, array('absolute' => TRUE)) . (variable_get('clean_url', 0) ? '' : '?q=') ); + + $form['site_404_full'] = array( + '#type' => 'checkbox', + '#title' => t('Full 404 (not found) page'), + '#default_value' => variable_get('site_404_full', FALSE), + '#description' => t('Display the 404 page with menus and blocks. If you don\'t use this, make sure your error page provides a means for the user to return to the site. Turning this off will save on CPU and bandwidth in the event of this error.'), + ); $form['error_level'] = array( '#type' => 'select', '#title' => t('Error reporting'), '#default_value' => variable_get('error_level', 1),