Also fix an empty span that seems to be generated when connecting via unix sockets...
authorxzilla <xzilla>
Sat, 17 Jun 2006 21:50:06 +0000 (21:50 +0000)
committerxzilla <xzilla>
Sat, 17 Jun 2006 21:50:06 +0000 (21:50 +0000)
localhost unless someone prefers some different verbage. (Actually i18n that might be a good idea)

classes/Misc.php

index e265979c2e5ca443546c1d4dadf231c718162dd8..d66565296c8a159e7866049751f6a0993974f642 100644 (file)
@@ -2,7 +2,7 @@
        /**
         * Class to hold various commonly used functions
         *
-        * $Id: Misc.php,v 1.129 2006/06/17 20:35:27 xzilla Exp $
+        * $Id: Misc.php,v 1.130 2006/06/17 21:50:06 xzilla Exp $
         */
         
        class Misc {
                        if ($server_info && isset($server_info['platform']) && isset($server_info['username'])) {
                                echo sprintf($lang['strtopbar'],
                                        '<span class="platform">'.htmlspecialchars($server_info['platform']).'</span>',
-                                       '<span class="host">'.htmlspecialchars($server_info['host']).'</span>',
+                                       '<span class="host">'.htmlspecialchars((empty($server_info['host'])) ? 'localhost':$server_info['host']).'</span>',
                                        '<span class="port">'.htmlspecialchars($server_info['port']).'</span>',
                                        '<span class="username">'.htmlspecialchars($server_info['username']).'</span>',
                                        '<span class="date">'.date($lang['strtimefmt']).'</span>');