https://bugzilla.wikimedia.org/show_bug.cgi?id=21577
Summary: Let GeoLite handle different targets for chapters
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Keywords: patch
Severity: enhancement
Priority: Normal
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=6806)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6806)
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)
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l