Last modified: 2009-05-11 09:11:09 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 T20735, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 18735 - Cleanup Collection.hooks.php (patch)
Cleanup Collection.hooks.php (patch)
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: PediaPress Development Team
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-05-09 16:42 UTC by Happy-melon
Modified: 2009-05-11 09:11 UTC (History)
0 users

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


Attachments
against r50336, refactors collection.hooks.php (15.65 KB, patch)
2009-05-09 16:42 UTC, Happy-melon
Details

Description Happy-melon 2009-05-09 16:42:43 UTC
Created attachment 6101 [details]
against r50336, refactors collection.hooks.php

While effective and functional, this code is not as well integrated with MediaWiki's coding conventions or architecture as it could/should be.  This patched version is, I hope, more so.  I've cleaned up some unused variables and globals, rewritten the hardcoded HTML output to use Xml::tags(), Linker::link() and $wgOut->addScriptFile(), and fixed some double escaping in the tooltips (bug18719, thanks to Niklas Laxström for pointing that one out).  I confess I'm not 100% certain I've got the script loads correct, as I'm not entirely sure what script does what.  Everything I tested worked as it should :D
Comment 1 PediaPress Development Team 2009-05-11 09:11:09 UTC
Thanks a lot. Reviewed and applied in http://svn.wikimedia.org/viewvc/mediawiki?view=rev&revision=50472

I've had to add some additional calls to urldecode(). (I guess that's a good thing, because some URLs weren't encoded correctly before, but why doesn't the WebRequest class automatically do the decoding for me? Anyway...)

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


Navigation
Links