Patch #531864 - display something in title when no db

This commit is contained in:
Loïc Chapeaux
2002-03-22 09:00:38 +00:00
parent 68d00f534d
commit eb8b7cccdc
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,8 @@ $Source$
multiple tables if the "onsubmit" event is handled by the browser. multiple tables if the "onsubmit" event is handled by the browser.
* mult_submits.inc.php3: removed the confirmation stage for "OPTIMIZE" * mult_submits.inc.php3: removed the confirmation stage for "OPTIMIZE"
statements. statements.
* header.inc.php3, line 89: patch #531864 - display something in title when
no db thanks to Michal Cihar.
2002-03-20 Marc Delisle <lem9@users.sourceforge.net> 2002-03-20 Marc Delisle <lem9@users.sourceforge.net>
* lang/*, removed $strSequence * lang/*, removed $strSequence

View File

@@ -86,7 +86,7 @@ if (isset($table)) {
$title .= (empty($title) ? '' : '.') . str_replace('\'', '\\\'', $table); $title .= (empty($title) ? '' : '.') . str_replace('\'', '\\\'', $table);
} }
if (!empty($cfgServer) && isset($cfgServer['host'])) { if (!empty($cfgServer) && isset($cfgServer['host'])) {
$title .= (empty($title) ? '' : ' ') $title .= (empty($title) ? 'phpMyAdmin ' : ' ')
. sprintf($strRunning, (empty($cfgServer['verbose']) ? str_replace('\'', '\\\'', $cfgServer['host']) : str_replace('\'', '\\\'', $cfgServer['verbose']))); . sprintf($strRunning, (empty($cfgServer['verbose']) ? str_replace('\'', '\\\'', $cfgServer['host']) : str_replace('\'', '\\\'', $cfgServer['verbose'])));
} }
$title .= (empty($title) ? '' : ' - ') . 'phpMyAdmin ' . PMA_VERSION; $title .= (empty($title) ? '' : ' - ') . 'phpMyAdmin ' . PMA_VERSION;