- Small usability improvement: add title to administration pages. Patch by Ax.
parent
b3d192fc28
commit
bfc5157357
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue