- Small usability improvement: add title to administration pages. Patch by Ax.

4.3.x
Dries Buytaert 2003-10-24 12:26:03 +00:00
parent b3d192fc28
commit bfc5157357
1 changed files with 2 additions and 3 deletions

View File

@ -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");
}