Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -157,17 +157,23 @@ |
158 | 158 | usort( $wgExtensionCredits[$type], array( $this, 'compare' ) ); |
159 | 159 | |
160 | 160 | foreach ( $wgExtensionCredits[$type] as $extension ) { |
| 161 | + $version = null; |
| 162 | + $subVersion = ''; |
161 | 163 | if ( isset( $extension['version'] ) ) { |
162 | 164 | $version = $extension['version']; |
163 | | - } elseif ( isset( $extension['svn-revision'] ) && |
| 165 | + } |
| 166 | + if ( isset( $extension['svn-revision'] ) && |
164 | 167 | preg_match( '/\$(?:Rev|LastChangedRevision|Revision): *(\d+)/', |
165 | | - $extension['svn-revision'], $m ) ) |
166 | | - { |
167 | | - $version = 'r' . $m[1]; |
168 | | - } else { |
169 | | - $version = null; |
| 168 | + $extension['svn-revision'], $m ) ) { |
| 169 | + $subVersion = 'r' . $m[1]; |
170 | 170 | } |
171 | 171 | |
| 172 | + if( $version && $subVersion ) { |
| 173 | + $version = $version . ' [' . $subVersion . ']'; |
| 174 | + } elseif ( !$version && $subVersion ) { |
| 175 | + $version = $subVersion; |
| 176 | + } |
| 177 | + |
172 | 178 | $out .= $this->formatCredits( |
173 | 179 | isset ( $extension['name'] ) ? $extension['name'] : '', |
174 | 180 | $version, |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -254,6 +254,7 @@ |
255 | 255 | * (bug 16754) Making arbitrary rows of sortable tables sticky: |
256 | 256 | |- class="unsortable" |
257 | 257 | * (bug 16617) Add "talk" link to list of templates in edit mode |
| 258 | +* Show subversion too even if a "normal" version number is available |
258 | 259 | |
259 | 260 | === Bug fixes in 1.14 === |
260 | 261 | |