r12289 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12288‎ | r12289 | r12290 >
Date:20:27, 29 December 2005
Author:avar
Status:old
Tags:
Comment:
* Reverting to 1.33 after talking to Rob, what we might need from SERVER_SOFTWARE is already included in php_sapi_name()
Modified paths:
  • /trunk/phase3/includes/SpecialVersion.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialVersion.php
@@ -1,6 +1,6 @@
22 <?php
33 /**#@+
4 - * Give information about the version of MediaWiki, PHP, server software, the DB and extensions
 4+ * Give information about the version of MediaWiki, PHP, the DB and extensions
55 *
66 * @package MediaWiki
77 * @subpackage SpecialPage
@@ -29,7 +29,7 @@
3030 * Constructor
3131 */
3232 function SpecialVersion() {
33 - # Force to English language
 33+ // English motherfucker, do you speak it?
3434 $this->langObj = setupLangObj( 'LanguageEn' );
3535 $this->langObj->initEncoding();
3636 }
@@ -84,24 +84,12 @@
8585
8686 * [http://www.mediawiki.org/ MediaWiki]: $wgVersion
8787 * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ")
88 - " . $this->getServerSoftware() . "
8988 * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion() . "
9089 </div>";
9190
9291 return str_replace( "\t\t", '', $ret );
9392 }
9493
95 - function getServerSoftware() {
96 - # Return tweaked version of $_SERVER['SERVER_SOFTWARE']
97 - if( isset( $_SERVER['SERVER_SOFTWARE'] ) ) {
98 - $osver = explode( ' ', $_SERVER['SERVER_SOFTWARE'] );
99 - $ssoft = "* " . ( count( $osver ) > 1 ? $osver[0] . ' ' . $osver[1] : $osver[0] );
100 - } else {
101 - $ssoft = "";
102 - }
103 - return( $ssoft );
104 - }
105 -
10694 function extensionCredits() {
10795 global $wgExtensionCredits, $wgExtensionFunctions, $wgSkinExtensionFunction;
10896

Status & tagging log