Skip to content

Commit

Permalink
Email verification sent with unusable, untranslated strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas K. Dionysopoulos committed Aug 15, 2017
1 parent fce9c65 commit 1f56b9e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**Bug fixes**

* Cannot create user account from social network login
* Email verification sent with unusable, untranslated strings

# 1.0.0

Expand Down
7 changes: 7 additions & 0 deletions plugins/system/sociallogin/helper/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,13 @@ private static function register(array $data, array $userParams = array(), $skip
$app = JFactory::getApplication();
}

// Load com_users language files
$lang = $app->getLanguage();
$lang->load('com_users', JPATH_BASE . '/components/com_users', 'en-GB', false, false);
$lang->load('com_users', JPATH_BASE, 'en-GB', false, false);
$lang->load('com_users', JPATH_BASE . '/components/com_users', null, false, false);
$lang->load('com_users', JPATH_BASE, null, false, false);

$params = JComponentHelper::getParams('com_users');

$data = array_merge(array(
Expand Down

0 comments on commit 1f56b9e

Please sign in to comment.