https://bugzilla.wikimedia.org/show_bug.cgi?id=35649
--- Comment #1 from Sam Reed (reedy) <[email protected]> 2012-04-02 19:04:24 UTC --- I guess it is: /** * Return a string of the MediaWiki version with SVN revision if available. * * @param $flags String * @return mixed */ public static function getVersion( $flags = '' ) { global $wgVersion, $IP; wfProfileIn( __METHOD__ ); $info = self::getSvnInfo( $IP ); if ( !$info ) { $version = $wgVersion; } elseif( $flags === 'nodb' ) { $version = "$wgVersion (r{$info['checkout-rev']})"; } else { $version = $wgVersion . ' ' . wfMsg( 'version-svn-revision', isset( $info['directory-rev'] ) ? $info['directory-rev'] : '', $info['checkout-rev'] ); } wfProfileOut( __METHOD__ ); return $version; } vs for core: /** * Return a wikitext-formatted string of the MediaWiki version with a link to * the SVN revision or the git SHA1 of head if available. * Git is prefered over Svn * The fallback is just $wgVersion * * @return mixed */ public static function getVersionLinked() { global $wgVersion; wfProfileIn( __METHOD__ ); if( $gitVersion = self::getVersionLinkedGit() ) { $v = $gitVersion; } elseif( $svnVersion = self::getVersionLinkedSvn() ) { $v = $svnVersion; } else { $v = $wgVersion; // fallback } wfProfileOut( __METHOD__ ); return $v; } -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
