proposed patch
Actually $wguname['nodename'] is used by Database.php and Profiler.php or $wguname isn't set on windows and other platforms where posix_uname() doesn't exist. I modified these files to use $wgNodeName wich contains the same value, i also modified Setup.php to use php_uname('n') wich return the computer's name on Windows (it is the case with my version of Windows XP) before $_SERVER['SERVER_NAME'] if posix_uname() is aviable. As this does now the same thing as wfHostname(), i modified this function to simply returns $wgNodeName.
Maybe all this should be done in wfHostname() but i don't konw if an extension is using $wguname/$wgNodeName.
Version: 1.12.x
Severity: normal
attachment nodename.patch ignored as obsolete