Platonides has submitted this change and it was merged.

Change subject: Fix the categories for gb and us
......................................................................


Fix the categories for gb and us

Category:Images_from_Wiki_Loves_Monuments_2013_in_the_United_States
Category:Images_from_Wiki_Loves_Monuments_2013_in_the_United_Kingdom

not

Change-Id: If5e39a8563b1296b3b2e2e7936275215dd50b492
Category:Images_from_Wiki_Loves_Monuments_2013_in_the_U.K.
Category:Images_from_Wiki_Loves_Monuments_2013_in_the_U.S.
---
M WikiLovesMonuments_body.php
1 file changed, 10 insertions(+), 1 deletion(-)



diff --git a/WikiLovesMonuments_body.php b/WikiLovesMonuments_body.php
index 3f430f2..14dd314 100644
--- a/WikiLovesMonuments_body.php
+++ b/WikiLovesMonuments_body.php
@@ -415,7 +415,16 @@
                if ( !isset( $countries[ strtoupper( $countryCode ) ] ) )
                        return false;
 
-               $country = $countries[ strtoupper( $countryCode ) ];
+               switch ( $countryCode ) {
+                       case 'gb':
+                               $country = 'United Kingdom';
+                               break;
+                       case 'us':
+                               $country = 'United States';
+                               break;
+                       default:
+                               $country = $countries[ strtoupper( $countryCode 
) ];
+               }
 
                // There's an article in front of the country name:
                static $theCountries = array( 'cz', 'gb', 'nl', 'ph', 'us' );

-- 
To view, visit https://gerrit.wikimedia.org/r/83365
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If5e39a8563b1296b3b2e2e7936275215dd50b492
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/WikiLovesMonuments
Gerrit-Branch: master
Gerrit-Owner: Platonides <platoni...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to