Last modified: 2010-05-15 15:54:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T16983, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 14983 - Patch to make Special:Statistics result rendering consistent with Special:Search
Patch to make Special:Statistics result rendering consistent with Special:Search
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.12.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-30 14:48 UTC by Lester Hightower
Modified: 2010-05-15 15:54 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
The patch to SpecialStatistics.php v1.12.0 (diff -U3 format) (1.73 KB, patch)
2008-07-30 14:48 UTC, Lester Hightower
Details

Description Lester Hightower 2008-07-30 14:48:19 UTC
Created attachment 5106 [details]
The patch to SpecialStatistics.php v1.12.0 (diff -U3 format)

In a MediaWiki 1.12.0 installation that we run, we have slightly altered (customized) the makeTitle() and secureAndSplit() methods in Title.php, for the purpose of displaying "human titles" to users for computer-generated pages (fully automated name-spaces, really), where the $title->mDbkeyform is a computer-generated key (an index).  We have had that code in production for quite a while, and everything seems to work great.

Recently, a user pointed out that links to computer-generated pages were broken in the "Most viewed pages" section of Special:Statistics.  We researched the problem and found it to be an issue where SpecialStatistics.php somehow calls Title::makeTitleSafe() twice.  It seems not to do that directly, but rather does it once itself, and then Parser does it again.  That "double call" is what was breaking our custom "make human titles" code in Title.php.  We have looked carefully, and as best we can tell, no other part of MediaWiki 1.12.0 has this problem.

To fix the problem, and to hopefully improve MediaWiki in general, we have recoded a small portion of SpecialStatistics.php, so as to have it render its results in the same way that SpecialSearch.php does.  We chose to model our changes after SpecialSearch.php for consistency, so as to not re-invent the wheel, and in hopes that doing so improves the chance of our patch being accepted into the main-line MediaWiki code.

The patch is attached.
Comment 1 Brion Vibber 2008-07-30 21:20:18 UTC
Titles must be round-trippable from human-readable text form back to internal processing. If your customizations have broken this assumption, many places in the wiki where links are generated in wikitext will fail to work.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links