r106552 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106551‎ | r106552 | r106553 >
Date:03:02, 18 December 2011
Author:kaldari
Status:ok
Tags:
Comment:
updating for new cldr code
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.db.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.db.php
@@ -420,10 +420,10 @@
421421
422422 if ( is_callable( array( 'CountryNames', 'getNames' ) ) ) {
423423 // Retrieve the list of countries in user's language (via CLDR)
424 - $countries = CountryNames::getNames(
425 - $code, // Language code
426 - CountryNames::LIST_FUNDRAISING // Pull all non-embargoed countries
427 - );
 424+ $countries = CountryNames::getNames( $code );
 425+ unset( $countries['CU'] ); // Cuba
 426+ unset( $countries['IR'] ); // Iran
 427+ unset( $countries['SY'] ); // Syria
428428 }
429429
430430 if ( !$countries ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r107015MFT r103297, r104003, r104210, r104999, r105015, r105740, r105800, r106166, r...awjrichards23:56, 21 December 2011

Status & tagging log