Topic-icon Presales question

Support Specialist
2 days 8 hours ago - 2 days 8 hours ago #68182 by alzander
Replied by alzander on topic Presales question
There does seem to be an issue with the current implementation for fetching the user's language string. We diagnosed the problem and have a 1 line code fix we'd love for you to implement and verify the correct behavior.

To do so, please edit:
/components/com_jfbconnect/models/loginregister.php
Around line 300, you should see:
$lang = $app->input->get(ApplicationHelper::getHash('language'), '', 'COOKIE');
$user['language'] = $lang;

Update that to:
$user['language'] = JHelperContent::getCurrentLanguage();

The previous method works if the Language Switcher is configured to use a cookie to store the language. The default option was changed to Session and we apparently didn't support that.

Please test and let us know if that gets you going. We will ensure this is included in the next release of JFBConnect as well.

Thanks,
Alex
Last edit: 2 days 8 hours ago by alzander.
2 days 8 hours ago - 2 days 8 hours ago #68183 by romagromov
Replied by romagromov on topic Presales question
So, I should replace 2 lines with the new one, correct?
And what happens when a new version of a component is released?
Will I lose those changes?
Last edit: 2 days 8 hours ago by romagromov.
Social Stream
Hide. Seek. Play!

Countdown Hide & Seek Game

Countdown, the new hide & seek toy, is available now! Designed and developed by the founders of SourceCoast, it's the perfect toy to get your kids moving at all ages.

Get the Hide and Seek Toy on Amazon