* Reverting to 1.33 after talking to Rob, what we might need from SERVER_SOFTWARE...
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 29 Dec 2005 20:27:25 +0000 (20:27 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Thu, 29 Dec 2005 20:27:25 +0000 (20:27 +0000)
includes/SpecialVersion.php

index 7ad58b5..31e16de 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**#@+
- * Give information about the version of MediaWiki, PHP, server software, the DB and extensions
+ * Give information about the version of MediaWiki, PHP, the DB and extensions
  *
  * @package MediaWiki
  * @subpackage SpecialPage
@@ -29,7 +29,7 @@ class SpecialVersion {
         * Constructor
         */
        function SpecialVersion() {
-               # Force to English language
+               // English motherfucker, do you speak it?
                $this->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() . "
                </div>";
 
                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;