Adamw has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/115333

Change subject: Default language to en in thank_you until we have a better way 
to do things.
......................................................................

Default language to en in thank_you until we have a better way to do things.

Change-Id: I8e4f200e26dd5406f0efe0462d7fb85a5d796d0f
---
M sites/all/modules/thank_you/thank_you.module
1 file changed, 5 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/fundraising/crm 
refs/changes/33/115333/1

diff --git a/sites/all/modules/thank_you/thank_you.module 
b/sites/all/modules/thank_you/thank_you.module
index 18e7ab6..8bfe3cc 100644
--- a/sites/all/modules/thank_you/thank_you.module
+++ b/sites/all/modules/thank_you/thank_you.module
@@ -283,6 +283,11 @@
                $language = $locale[0];
        }
 
+    if ( !$language ) {
+        // FIXME: emulate existing broken behavior until we have a better fix
+        $language = 'en';
+    }
+
        if( isset( $test ) ){
                $language = $test['language'];
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8e4f200e26dd5406f0efe0462d7fb85a5d796d0f
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/fundraising/crm
Gerrit-Branch: master
Gerrit-Owner: Adamw <awi...@wikimedia.org>

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

Reply via email to