Skip to content

Commit

Permalink
CRM-21470 Ensure we don't have an empty locale #2
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelsov committed Nov 27, 2017
1 parent deb9660 commit 5a44748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CRM/Utils/System/WordPress.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ public function getUFLocale() {

// TODO: set language variable for others WordPress plugin

if (isset($language) && !empty($language)) {
if (!empty($language)) {
return CRM_Core_I18n_PseudoConstant::longForShort(substr($language, 0, 2));
}
else {
Expand Down

0 comments on commit 5a44748

Please sign in to comment.