summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-18 09:48:49 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-18 09:48:49 +0000
commit57c7d7b43befd2ff186d8df6622265de05ac2b20 (patch)
tree792bfa6c2a2788c0a2b1997ef179a403eb4c550c /includes
parent494aa87e37c59ea63293c7d8c3a2bb065a10231b (diff)
downloadbrdo-57c7d7b43befd2ff186d8df6622265de05ac2b20.tar.gz
brdo-57c7d7b43befd2ff186d8df6622265de05ac2b20.tar.bz2
- The page_footer() function was always called twice due to the introduction
of the "footer" hook (and because of the existence of the page module). This caused the node view counter to be incremented twice per page view, the cache being set twice, etc. Quite a bug.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc
index 611135f37..8143693f2 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -913,7 +913,7 @@ function query_print() {
print "</pre>";
}
-function page_header() {
+function drupal_page_header() {
if (variable_get("dev_timer", 0)) {
timer_start();
}
@@ -940,8 +940,7 @@ function page_header() {
}
}
-function page_footer() {
-
+function drupal_page_footer() {
if (variable_get("cache", 0)) {
page_set_cache();
}