all wikimedia servers return fully qualified domain name in hostname

there's no need of linux-specific -a flag. warnings--
This commit is contained in:
Domas Mituzas 2004-07-14 06:23:10 +00:00
parent 27b66b8a2a
commit a8bdd044ad

View file

@ -61,7 +61,7 @@ $wgCommandLineMode = true;
@ob_end_flush();
$sep = strchr( $include_path = ini_get( "include_path" ), ";" ) ? ";" : ":";
if ( $sep == ":" && strpos( `hostname -a`, "wikimedia.org" ) !== false ) {
if ( $sep == ":" && strpos( `hostname`, "wikimedia.org" ) !== false ) {
$wgWikiFarm = true;
if ( isset( $args[0] ) ) {
$lang = array_shift( $args );