diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-05-18 09:48:49 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-05-18 09:48:49 +0000 |
commit | 57c7d7b43befd2ff186d8df6622265de05ac2b20 (patch) | |
tree | 792bfa6c2a2788c0a2b1997ef179a403eb4c550c /modules | |
parent | 494aa87e37c59ea63293c7d8c3a2bb065a10231b (diff) | |
download | brdo-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 'modules')
-rw-r--r-- | modules/admin.module | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/admin.module b/modules/admin.module index 06649991a..c750fe67a 100644 --- a/modules/admin.module +++ b/modules/admin.module @@ -28,8 +28,7 @@ function admin_page() { global $base_url; if (user_access("access administration pages")) { - page_header(); - + drupal_page_header(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html> @@ -89,12 +88,12 @@ function admin_page() { echo "<h1><a href=\"index.php\">". variable_get("site_name", "drupal") ."</a></h1>"; print menu_tree("admin") ; print "</div>"; - print theme_footer(); + print theme_footer(); ?> </body> </html> <?php - page_footer(); + drupal_page_footer(); } else { print message_access(); |