* (bug 6125) Add links to edit old versions to diff views
* (bug 5127) Auto edit summary when creating redirect page
* (bug 3926) Introduce {{#language:}} magic word
+* Fix section links from edit comments for [[:Image:Bla.jpg]] in section titles
== Compatibility ==
if( $title ) {
$section = $auto;
- # This is hackish but should work in most cases.
+ # Generate a valid anchor name from the section title.
+ # Hackish, but should generally work - we strip wiki
+ # syntax, including the magic [[: that is used to
+ # "link rather than show" in case of images and
+ # interlanguage links.
+ $section = str_replace( '[[:', '', $section );
$section = str_replace( '[[', '', $section );
$section = str_replace( ']]', '', $section );
$sectionTitle = wfClone( $title );