Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
d4a401a3
Commit
d4a401a3
authored
Jun 12, 2012
by
Nathaniel Catchpole
Browse files
Issue
#1591690
by bneil: Remove drupal_page_footer().
parent
0c660d84
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/includes/bootstrap.inc
View file @
d4a401a3
...
...
@@ -3054,7 +3054,7 @@ function _registry_check_code($type, $name = NULL) {
return;
}
// Called
from drupal_page_footer
, we write to permanent storage if there
// Called
when closing requests
, we write to permanent storage if there
// changes to the lookup cache for this request.
if ($type == REGISTRY_WRITE_LOOKUP_CACHE) {
if ($cache_update_needed) {
...
...
core/includes/common.inc
View file @
d4a401a3
...
...
@@ -2517,45 +2517,12 @@ function drupal_deliver_html_page($page_callback_result) {
// undefined.
print drupal_render_page($page_callback_result);
}
// Perform end-of-request tasks.
drupal_page_footer();
}
/**
* Performs end-of-request tasks.
*
* This function sets the page cache if appropriate, and allows modules to
* react to the closing of the page by calling hook_exit().
*/
function drupal_page_footer() {
global $user;
module_invoke_all('exit');
// Commit the user session, if needed.
drupal_session_commit();
$config = config('system.performance');
if ($config->get('cache') && ($cache = drupal_page_set_cache())) {
drupal_serve_page_from_cache($cache);
}
else {
ob_flush();
}
_registry_check_code(REGISTRY_WRITE_LOOKUP_CACHE);
drupal_cache_system_paths();
module_implements_write_cache();
system_run_automated_cron();
}
/**
* Performs end-of-request tasks.
*
* In some cases page requests need to end without calling drupal_page_footer().
* In these cases, call drupal_exit() instead. There should rarely be a reason
* to call exit instead of drupal_exit();
* There should rarely be a reason to call exit instead of drupal_exit();
*
* @param $destination
* If this function is called from drupal_goto(), then this argument
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment