]> git.joonet.de Git - adminer.git/commitdiff
Temporary variable
authorjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Tue, 22 Sep 2009 15:08:26 +0000 (15:08 +0000)
committerjakubvrana <jakubvrana@7c3ca157-0c34-0410-bff1-cbf682f78f5c>
Tue, 22 Sep 2009 15:08:26 +0000 (15:08 +0000)
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1127 7c3ca157-0c34-0410-bff1-cbf682f78f5c

adminer/include/design.inc.php

index 5e0c3f25e2f44015b88478a8cac5bec0fca154c8..b003ad39ab7da72829c791f5832c9f70dcc92d45 100644 (file)
@@ -2,13 +2,14 @@
 function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
        global $LANG, $VERSION, $adminer;
        header("Content-Type: text/html; charset=utf-8");
+       $title_all = $title . (strlen($title2) ? ": " . h($title2) : "");
        ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
 <html lang="<?php echo $LANG; ?>">
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <meta http-equiv="Content-Script-Type" content="text/javascript">
 <meta name="robots" content="noindex">
-<title><?php echo $title . (strlen($title2) ? ": " . h($title2) : "") . (strlen($_GET["server"]) && $_GET["server"] != "localhost" ? h("- $_GET[server]") : "") . " - " . $adminer->name(); ?></title>
+<title><?php echo $title_all . (strlen($_GET["server"]) && $_GET["server"] != "localhost" ? h("- $_GET[server]") : "") . " - " . $adminer->name(); ?></title>
 <link rel="shortcut icon" type="image/x-icon" href="../adminer/favicon.ico">
 <link rel="stylesheet" type="text/css" href="../adminer/default.css<?php // Ondrej Valka, http://valka.info ?>">
 <?php if (file_exists("adminer.css")) { ?>
@@ -37,7 +38,7 @@ function page_header($title, $error = "", $breadcrumb = array(), $title2 = "") {
                }
                echo "$title\n";
        }
-       echo "<h2>$title" . (strlen($title2) ? ": " . h($title2) : "") . "</h2>\n";
+       echo "<h2>$title_all</h2>\n";
        if ($_SESSION["messages"]) {
                echo "<div class='message'>" . implode("</div>\n<div class='message'>", $_SESSION["messages"]) . "</div>\n";
                $_SESSION["messages"] = array();