Last modified: 2011-06-28 15:50:28 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 T23577, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 21577 - Let GeoLite handle different targets for chapters
Let GeoLite handle different targets for chapters
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Tomasz Finc
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-20 04:24 UTC by Thomas "Tango" Dalton
Modified: 2011-06-28 15:50 UTC (History)
1 user (show)

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


Attachments
Patch - see description (1.17 KB, patch)
2009-11-20 04:24 UTC, Thomas "Tango" Dalton
Details

Description Thomas "Tango" Dalton 2009-11-20 04:24:14 UTC
Created attachment 6806 [details]
Patch - see description

This patch should allow different fundraising banners to link to different chapter landing pages. To get the banners to do what we want in the UK, the following will need to be added to wherever the globals for meta are defined:

$wgChapterTargets['Help_Us_Change_the_World']['uk']=true;

('uk' may need to be replaced by whatever the geoip calls the UK, use whatever is used as the key in $wgChapterLandingPages)

The same kind of line should be added for any specific target page that exists for a specific chapter. If the array value doesn't exist, it defaults to the standard chapter page (as happens currently).

NB: THIS CODE IS UNTESTED (I don't have a local system with this extension installed and it is far too complicated to set one up and my PHP-fu is insufficient to guarantee it will work by eye)
Comment 1 Siebrand Mazeland 2010-01-09 18:27:59 UTC
Assigned to Tomasz Finc for review and application if OK-ed.
Comment 2 Thomas "Tango" Dalton 2010-01-09 18:31:25 UTC
What's the point? The fundraiser is over now... Chances are the system will be completely rewritten for next year.
Comment 3 Siebrand Mazeland 2010-01-09 18:45:23 UTC
Then the outcome could be "WONTFIX". I cannot assess, Tomas can...
Comment 4 Tomasz Finc 2011-06-23 23:13:26 UTC
Resolving as we migrated over to LandingCheck for this functionality.

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


Navigation
Links