Skip to content
Snippets Groups Projects
Commit 1c03a576 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Don't display the title when there is no title.
parent 1080e6c0
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -22,8 +22,8 @@ function marvin_header() {
$output .= theme_head($main);
$output .= "<title>";
if (drupal_get_title()) {
$output .= drupal_get_title() ." - ". variable_get("site_name", "drupal");
if ($title = drupal_get_title()) {
$output .= "$title - ". variable_get("site_name", "drupal");
}
else {
$output .= variable_get("site_name", "drupal");
......@@ -56,8 +56,11 @@ function marvin_header() {
}
$output .= " <td style=\"vertical-align: top; width: 85%;\">\n";
if ($title = drupal_get_title()) {
$output .= theme("breadcrumb", drupal_get_breadcrumb());
$output .= "<h2>" . drupal_get_title() . "</h2>";
$output .= "<h2>$title</h2>";
}
if ($help = menu_get_active_help()) {
$output .= "<small>$help</small><hr />";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment