* (bug 7109) Fix Atom feed version number in header links
* (bug 7075) List registered parser function hooks on Special:Version
* (bug 7059) Introduce "anchorencode" colon function
+* Include SVN revision number in {{CURRENTVERSION}} output, where applicable
== Languages updated ==
* @static
*/
function MediaWikiCredits() {
- $version = $this->getVersion();
+ $version = self::getVersion();
$dbr =& wfGetDB( DB_SLAVE );
$ret =
return str_replace( "\t\t", '', $ret );
}
- function getVersion() {
+ public static function getVersion() {
global $wgVersion, $IP;
- $svn = $this->getSvnRevision( $IP );
+ $svn = self::getSvnRevision( $IP );
return $svn ? "$wgVersion (r$svn)" : $wgVersion;
}
* @param string $dir
* @return mixed revision number as int, or false if not a SVN checkout
*/
- function getSvnRevision( $dir ) {
+ public static function getSvnRevision( $dir ) {
if( !function_exists( 'simplexml_load_file' ) ) {
// We could fall back to expat... YUCK
return false;