* (bug 8417) Handle EXIF unknown dates
* (bug 8372) Return nothing on empty <math> tags.
* New maintenance script to show the cached statistics : showStats.php.
-* Added language code and name in Special:Version next to MediaWiki version.
+* Emit content language information in a comment in Special:Version, for
+ debugging/support purposes
* New special page to list available interwikis [[Special:Listinterwikis]]
* Count deleted edits when regenerating total edits in maintenance/initStats.php
$this->extensionCredits() .
$this->wgHooks()
);
+ $wgOut->addHtml( self::getLanguageInfo() );
$wgOut->addHTML( $this->IPInfo() );
$wgOut->addHTML( '</div>' );
}
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
or [http://www.gnu.org/copyleft/gpl.html read it online]
- * [http://www.mediawiki.org/ MediaWiki]: $version ($wgLanguageCode $mwlang)
+ * [http://www.mediawiki.org/ MediaWiki]: $version
* [http://www.php.net/ PHP]: " . phpversion() . " (" . php_sapi_name() . ")
* " . $dbr->getSoftwareLink() . ": " . $dbr->getServerVersion();
return intval( $content[3] );
}
}
+
+ /**
+ * Get the content language name and code, for debugging/support purposes
+ *
+ * @return string
+ */
+ private static function getLanguageInfo() {
+ global $wgContLang;
+ $code = $wgContLang->getCode();
+ $name = Language::getLanguageName( $code );
+ return '<!-- ' . htmlspecialchars( "Content Language: {$name} [{$code}]" ) . ' -->';
+ }
/**#@-*/
}