r12279 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r12278‎ | r12279 | r12280 >
Date:02:49, 29 December 2005
Author:robchurch
Status:old
Tags:
Comment:
* (bug 3794) Include OS / platform info in Special:Version
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialVersion.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialVersion.php
@@ -1,12 +1,12 @@
22 <?php
33 /**#@+
4 - * Give information about the version of MediaWiki, PHP, the DB and extensions
 4+ * Give information about the version of MediaWiki, PHP, server software, the DB and extensions
55 *
66 * @package MediaWiki
77 * @subpackage SpecialPage
88 *
9 - * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
10 - * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason
 9+ * @authors Ævar Arnfjörð Bjarmason <avarab@gmail.com>, Rob Church <robchur@gmail.com>
 10+ * @copyright Copyright © 2005, Ævar Arnfjörð Bjarmason, Rob Church
1111 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
1212 */
1313
@@ -29,7 +29,7 @@
3030 * Constructor
3131 */
3232 function SpecialVersion() {
33 - // English motherfucker, do you speak it?
 33+ # Force to English language
3434 $this->langObj = setupLangObj( 'LanguageEn' );
3535 $this->langObj->initEncoding();
3636 }
@@ -84,12 +84,19 @@
8585
8686 * [http://www.mediawiki.org/ MediaWiki]: $wgVersion
8787 * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ")
 88+ * " . $this->getServerSoftware() . "
8889 * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion() . "
8990 </div>";
9091
9192 return str_replace( "\t\t", '', $ret );
9293 }
9394
 95+ function getServerSoftware() {
 96+ # Return tweaked version of $_SERVER['SERVER_SOFTWARE']
 97+ $osver = explode( ' ', $_SERVER['SERVER_SOFTWARE'] );
 98+ return( count( $osver ) > 1 ? $osver[0] . ' ' . $osver[1] : $osver[0] );
 99+ }
 100+
94101 function extensionCredits() {
95102 global $wgExtensionCredits, $wgExtensionFunctions, $wgSkinExtensionFunction;
96103
Index: trunk/phase3/RELEASE-NOTES
@@ -368,8 +368,8 @@
369369 * (bug 4385) Separate parser cache entries for non-editing users, so section
370370 edit links don't vanish / appear unwanted on protected pages
371371 * (bug 2726, 3397) Fix [[Special:]] and [[:Image]] links in action=render
 372+* (bug 3794) Include OS / platform info in Special:Version
372373
373 -
374374 === Caveats ===
375375
376376 Some output, particularly involving user-supplied inline HTML, may not

Follow-up revisions

RevisionCommit summaryAuthorDate
r112368[JSTesting] Add more mw.loader tests...krinkle23:13, 24 February 2012

Status & tagging log