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:
@@ -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])) {
|
||||
|
Reference in New Issue
Block a user