Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -197,7 +197,7 @@ |
198 | 198 | |
199 | 199 | foreach ( $extensionTypes as $type => $text ) { |
200 | 200 | if ( isset ( $wgExtensionCredits[$type] ) && count ( $wgExtensionCredits[$type] ) ) { |
201 | | - $out .= $this->openExtType( $text ); |
| 201 | + $out .= $this->openExtType( $text, 'credits-' . $type ); |
202 | 202 | |
203 | 203 | usort( $wgExtensionCredits[$type], array( $this, 'compare' ) ); |
204 | 204 | |
— | — | @@ -208,24 +208,24 @@ |
209 | 209 | } |
210 | 210 | |
211 | 211 | if ( count( $wgExtensionFunctions ) ) { |
212 | | - $out .= $this->openExtType( wfMsg( 'version-extension-functions' ) ); |
| 212 | + $out .= $this->openExtType( wfMsg( 'version-extension-functions' ), 'extension-functions' ); |
213 | 213 | $out .= '<tr><td colspan="4">' . $this->listToText( $wgExtensionFunctions ) . "</td></tr>\n"; |
214 | 214 | } |
215 | 215 | |
216 | 216 | if ( $cnt = count( $tags = $wgParser->getTags() ) ) { |
217 | 217 | for ( $i = 0; $i < $cnt; ++$i ) |
218 | 218 | $tags[$i] = "<{$tags[$i]}>"; |
219 | | - $out .= $this->openExtType( wfMsg( 'version-parser-extensiontags' ) ); |
| 219 | + $out .= $this->openExtType( wfMsg( 'version-parser-extensiontags' ), 'parser-tags' ); |
220 | 220 | $out .= '<tr><td colspan="4">' . $this->listToText( $tags ). "</td></tr>\n"; |
221 | 221 | } |
222 | 222 | |
223 | 223 | if( $cnt = count( $fhooks = $wgParser->getFunctionHooks() ) ) { |
224 | | - $out .= $this->openExtType( wfMsg( 'version-parser-function-hooks' ) ); |
| 224 | + $out .= $this->openExtType( wfMsg( 'version-parser-function-hooks' ), 'parser-function-hooks' ); |
225 | 225 | $out .= '<tr><td colspan="4">' . $this->listToText( $fhooks ) . "</td></tr>\n"; |
226 | 226 | } |
227 | 227 | |
228 | 228 | if ( count( $wgSkinExtensionFunctions ) ) { |
229 | | - $out .= $this->openExtType( wfMsg( 'version-skin-extension-functions' ) ); |
| 229 | + $out .= $this->openExtType( wfMsg( 'version-skin-extension-functions' ), 'skin-extension-functions' ); |
230 | 230 | $out .= '<tr><td colspan="4">' . $this->listToText( $wgSkinExtensionFunctions ) . "</td></tr>\n"; |
231 | 231 | } |
232 | 232 | $out .= Xml::closeElement( 'table' ); |
— | — | @@ -341,19 +341,20 @@ |
342 | 342 | return ''; |
343 | 343 | } |
344 | 344 | |
345 | | - private function openExtType($text, $name = null) { |
| 345 | + private function openExtType( $text, $name = null ) { |
346 | 346 | $opt = array( 'colspan' => 4 ); |
347 | 347 | $out = ''; |
348 | 348 | |
349 | | - if(!$this->firstExtOpened) { |
| 349 | + if( !$this->firstExtOpened ) { |
350 | 350 | // Insert a spacing line |
351 | 351 | $out .= '<tr class="sv-space">' . Xml::element( 'td', $opt ) . "</tr>\n"; |
352 | 352 | } |
353 | 353 | $this->firstExtOpened = false; |
354 | 354 | |
355 | | - if($name) { $opt['id'] = "sv-$name"; } |
| 355 | + if( $name ) |
| 356 | + $opt['id'] = "sv-$name"; |
356 | 357 | |
357 | | - $out .= "<tr>" . Xml::element( 'th', $opt, $text) . "</tr>\n"; |
| 358 | + $out .= "<tr>" . Xml::element( 'th', $opt, $text ) . "</tr>\n"; |
358 | 359 | return $out; |
359 | 360 | } |
360 | 361 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -296,6 +296,7 @@ |
297 | 297 | * $wgTexvcBackgroundColor contains background color for texvc call |
298 | 298 | * (bug 21574) Redirects can now have "303 See Other" HTTP status |
299 | 299 | * EditPage refactored to allow extensions to derive new edit modes much easier. |
| 300 | +* (bug 21826) Subsections of Special:Version now also have anchors |
300 | 301 | |
301 | 302 | === Bug fixes in 1.16 === |
302 | 303 | |