libraries/common.lib.php3, main.php3:

- Final solution to bug #582890
 lang/*:
  - String for localization used in auto-generation of names
This commit is contained in:
Robin Johnson
2002-09-11 02:09:45 +00:00
parent ed55f555f6
commit 2c2fc2b4f2
91 changed files with 111 additions and 4 deletions

View File

@@ -517,6 +517,16 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
if ( ($val['connect_type'] == 'tcp') && empty($val['host']) ) {
unset($cfg['Servers'][$key]);
}
// Final solution to bug #582890
// If we are using a socket connection
// and there is nothing in the verbose server name
// or the host field, then generate a name for the server
// in the form of "Server 2", localized of course!
if ( ($val['connect_type'] == 'socket') && empty($val['host']) && empty($val['verbose']) ) {
$cfg['Servers'][$key]['verbose'] = sprintf($GLOBALS['strServer'],$key);
$val['verbose'] = sprintf($GLOBALS['strServer'],$key);
}
}
if (empty($server) || !isset($cfg['Servers'][$server]) || !is_array($cfg['Servers'][$server])) {