summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/admin.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/admin.module b/modules/admin.module
index 95a14a082..fffc6801c 100644
--- a/modules/admin.module
+++ b/modules/admin.module
@@ -34,8 +34,6 @@ function admin_link($type) {
function admin_page() {
if (user_access("access administration pages")) {
- theme("header");
-
if ($help = menu_get_active_help()) {
$contents = "<small>$help</small><hr />";
}
@@ -51,12 +49,13 @@ function admin_page() {
array_pop($breadcrumb);
$title = menu_get_active_title();
+ theme("header", $title);
theme("breadcrumb", $breadcrumb);
theme("box", $title, $contents);
theme("footer");
}
else {
- theme("header");
+ theme("header", t("Access denied"));
theme("box", t("Access denied"), message_access());
theme("footer");
}