Query window: use verbose server name if any

This commit is contained in:
Marc Delisle
2007-06-02 14:36:01 +00:00
parent cb9853b236
commit a72fb8ff2b
2 changed files with 3 additions and 2 deletions

View File

@@ -221,8 +221,8 @@ function PMA_sqlQueryFormInsert($query = '', $is_querywindow = false, $delimiter
if (! strlen($GLOBALS['db'])) {
// prepare for server related
$legend = sprintf($GLOBALS['strRunSQLQueryOnServer'],
htmlspecialchars(
$GLOBALS['cfg']['Servers'][$GLOBALS['server']]['host']));
'"' . htmlspecialchars(
! empty($GLOBALS['cfg']['Servers'][$GLOBALS['server']]['verbose']) ? $GLOBALS['cfg']['Servers'][$GLOBALS['server']]['verbose'] : $GLOBALS['cfg']['Servers'][$GLOBALS['server']]['host']) . '"');
} elseif (! strlen($GLOBALS['table'])) {
// prepare for db related
$db = $GLOBALS['db'];