Last modified: 2007-12-31 22:42:57 UTC
Created attachment 4484 [details]
The attached diff makes AjaxFunctions.php (revision 28538) more respectful of case and underscores in titles.
Motivation: I use a slightly modified mediawiki for a technical wiki where case and underscores are significant in page titles. This relies on titles being treated correctly. In particular, newFromText should not be used where the title has already been canonicalised into DB key form.
- Do not add underscores (Title::newFromText will do that).
- Do not apply ucfirst to the search term unless wgCapitalLinks is true.
- Use Title::makeTitle directly instead of Title::newFromText when using fields directly from the database (or the Special Pages lists).
- Use Title::newFromDBkey instead of Title::newFromText in the wfAjaxWatch, where $pagename is already a DB key.
Applied in r29132