When $wgEnforceHtmlIds=false, add legacy anchors
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 5 Jan 2009 15:59:46 +0000 (15:59 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 5 Jan 2009 15:59:46 +0000 (15:59 +0000)
commit72e98e4e6ab24df27ecd9b1301e62ab4bfcec474
treebb61d7947d4a40f0e8ec543b0d00d8a54e1153eb
parent4fde66f28dd0dc20cf0e4ecbe8e56a0419a91ce5
When $wgEnforceHtmlIds=false, add legacy anchors

This means that old links will still work in a lot of cases.  However,
if the legacy anchor is invalid XML, we omit it.  In particular, on
non-Latin wikis, practically all old section links (from external
sources or using external links) are likely to break, since the first
character of legacy anchors starting with a non-ASCII character will be
".", which is invalid in XML as well as in HTML4.
includes/Linker.php
includes/parser/Parser.php