r18890 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r18889‎ | r18890 | r18891 >
Date:23:12, 6 January 2007
Author:hashar
Status:old
Tags:
Comment:
Language code and name used. It helps for support.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/SpecialVersion.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SpecialVersion.php
@@ -48,6 +48,9 @@
4949 $version = self::getVersion();
5050 $dbr =& wfGetDB( DB_SLAVE );
5151
 52+ global $wgLanguageNames, $wgLanguageCode;
 53+ $mwlang = $wgLanguageNames[$wgLanguageCode];
 54+
5255 $ret =
5356 "__NOTOC__
5457 This wiki is powered by '''[http://www.mediawiki.org/ MediaWiki]''',
@@ -70,13 +73,13 @@
7174 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
7275 or [http://www.gnu.org/copyleft/gpl.html read it online]
7376
74 - * [http://www.mediawiki.org/ MediaWiki]: $version
 77+ * [http://www.mediawiki.org/ MediaWiki]: $version ($wgLanguageCode $mwlang)
7578 * [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ")
7679 * " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion();
7780
7881 return str_replace( "\t\t", '', $ret );
7982 }
80 -
 83+
8184 public static function getVersion() {
8285 global $wgVersion, $IP;
8386 $svn = self::getSvnRevision( $IP );
Index: trunk/phase3/RELEASE-NOTES
@@ -472,6 +472,7 @@
473473 * (bug 8417) Handle EXIF unknown dates
474474 * (bug 8372) Return nothing on empty <math> tags.
475475 * New maintenance script to show the cached statistics : showStats.php.
 476+* Added language code and name in Special:Version next to MediaWiki version.
476477
477478
478479 == Languages updated ==