Revert 39936 and 39935;
authorDaniel Friesen <dantman@users.mediawiki.org>
Mon, 25 Aug 2008 06:50:31 +0000 (06:50 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Mon, 25 Aug 2008 06:50:31 +0000 (06:50 +0000)
commit4fcb1312f2b46e56f3ee94a0c3b5128e82efc404
treed652829d7139d3f7ae0e6a5a8ace82c3b6eafa3a
parent27cb2f9ab0106c47df09a745d225d823584edfed
Revert 39936 and 39935;
This 'fix' is merely a bad workaround and creates more issues rather than simply fixing.
A) Part of the Title class is being /duplicated/ meaning more bugs are going to show up when someone improves stuff inside Title and doesn't know stuff is duplicated here.
B) This change breaks cases as $wgCaptialLinks is now a per-namespace array, not a boolean.
C) This is the wrong way to 'fix' the issue, titleToKey and keyToTitle are meant to handle full titles, not prefixes, the issue is not that they break prefixes, it's that they are being misused and thus outputting something other than expected. The best way to fix this issue, would probably be to pad the title with something like '.' and then strip that single character off the db key.
D) Because whitespace is no longer being trimmed actual titles aren't being normalized properly in the other modules causing 'foobar ' to attempt to use the db key 'foobar_' which cannot exist.
includes/api/ApiQueryBase.php