Index: trunk/phase3/includes/Linker.php |
— | — | @@ -895,7 +895,12 @@ |
896 | 896 | if( $title ) { |
897 | 897 | $section = $auto; |
898 | 898 | |
899 | | - # This is hackish but should work in most cases. |
| 899 | + # Generate a valid anchor name from the section title. |
| 900 | + # Hackish, but should generally work - we strip wiki |
| 901 | + # syntax, including the magic [[: that is used to |
| 902 | + # "link rather than show" in case of images and |
| 903 | + # interlanguage links. |
| 904 | + $section = str_replace( '[[:', '', $section ); |
900 | 905 | $section = str_replace( '[[', '', $section ); |
901 | 906 | $section = str_replace( ']]', '', $section ); |
902 | 907 | $sectionTitle = wfClone( $title ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -387,6 +387,7 @@ |
388 | 388 | * (bug 6125) Add links to edit old versions to diff views |
389 | 389 | * (bug 5127) Auto edit summary when creating redirect page |
390 | 390 | * (bug 3926) Introduce {{#language:}} magic word |
| 391 | +* Fix section links from edit comments for [[:Image:Bla.jpg]] in section titles |
391 | 392 | |
392 | 393 | == Compatibility == |
393 | 394 | |