Last modified: 2007-12-31 22:42:57 UTC
Created attachment 4484 [details] AjaxFunctions.php diff 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. Changes include: * wfSajaxSearch: - 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). * wfAjaxWatch - Use Title::newFromDBkey instead of Title::newFromText in the wfAjaxWatch, where $pagename is already a DB key.
Applied in r29132