MediaWiki:DonationForm.js: Difference between revisions

Content deleted Content added
language variable not used in adjustHPC()
fall back to English if uselang contains %
Line 24:
*/
donationForm.getLocale = function( language, country ) {
// Sometimes in email testing links the uselang is a variable contiaining %
// In that case fall back to English so locale code doesn't break form
if ( language.match('%') ) {
language = 'en';
}
if ( language === 'en-gb' ) {
language = 'en';