From: Ævar Arnfjörð Bjarmason Date: Thu, 29 Dec 2005 20:27:25 +0000 (+0000) Subject: * Reverting to 1.33 after talking to Rob, what we might need from SERVER_SOFTWARE... X-Git-Tag: 1.6.0~854 X-Git-Url: http://git.cyclocoop.org/clavettes/images/siteon3.jpg?a=commitdiff_plain;h=3b13afb456687482d7ceebfd75a253d994fc5730;p=lhc%2Fweb%2Fwiklou.git * Reverting to 1.33 after talking to Rob, what we might need from SERVER_SOFTWARE is already included in php_sapi_name() --- diff --git a/includes/SpecialVersion.php b/includes/SpecialVersion.php index 7ad58b50b4..31e16dee80 100644 --- a/includes/SpecialVersion.php +++ b/includes/SpecialVersion.php @@ -1,6 +1,6 @@ langObj = setupLangObj( 'LanguageEn' ); $this->langObj->initEncoding(); } @@ -84,24 +84,12 @@ class SpecialVersion { * [http://www.mediawiki.org/ MediaWiki]: $wgVersion * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ") - " . $this->getServerSoftware() . " * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion() . " "; return str_replace( "\t\t", '', $ret ); } - function getServerSoftware() { - # Return tweaked version of $_SERVER['SERVER_SOFTWARE'] - if( isset( $_SERVER['SERVER_SOFTWARE'] ) ) { - $osver = explode( ' ', $_SERVER['SERVER_SOFTWARE'] ); - $ssoft = "* " . ( count( $osver ) > 1 ? $osver[0] . ' ' . $osver[1] : $osver[0] ); - } else { - $ssoft = ""; - } - return( $ssoft ); - } - function extensionCredits() { global $wgExtensionCredits, $wgExtensionFunctions, $wgSkinExtensionFunction;