Index: trunk/phase3/maintenance/language/checkLanguage.inc |
— | — | @@ -418,7 +418,7 @@ |
419 | 419 | |
420 | 420 | $tableRows = implode( "\n|-\n", $rows ); |
421 | 421 | |
422 | | - $version = SpecialVersion::getVersion( $IP ); |
| 422 | + $version = SpecialVersion::getVersion( 'nodb' ); |
423 | 423 | echo <<<EOL |
424 | 424 | '''Check results are for:''' <code>$version</code> |
425 | 425 | |
Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -111,12 +111,18 @@ |
112 | 112 | * |
113 | 113 | * @return mixed |
114 | 114 | */ |
115 | | - public static function getVersion() { |
| 115 | + public static function getVersion( $flags = '' ) { |
116 | 116 | global $wgVersion, $IP; |
117 | 117 | wfProfileIn( __METHOD__ ); |
118 | | - $svn = self::getSvnRevision( $IP, false, false , false); |
119 | | - $svnCo = self::getSvnRevision( $IP, true, false , false); |
120 | | - $version = $svn ? $wgVersion . wfMsg( 'version-svn-revision', $svn, $svnCo ) : $wgVersion; |
| 118 | + $svn = self::getSvnRevision( $IP, false, false , false ); |
| 119 | + $svnCo = self::getSvnRevision( $IP, true, false , false ); |
| 120 | + if ( !$svn ) { |
| 121 | + $version = $wgVersion; |
| 122 | + } elseif( $flags === 'nodb' ) { |
| 123 | + $version = "$wgVersion ($svnCo)"; |
| 124 | + } else { |
| 125 | + $version = $wgVersion . wfMsg( 'version-svn-revision', $svn, $svnCo ); |
| 126 | + } |
121 | 127 | wfProfileOut( __METHOD__ ); |
122 | 128 | return $version; |
123 | 129 | } |