Skip to content

Commit

Permalink
[com_fields] Filtering by language should only be done when the site is
Browse files Browse the repository at this point in the history
multingual
  • Loading branch information
infograf768 committed Apr 14, 2017
1 parent 18d8abd commit 46523ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_users/models/registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ protected function loadFormData()
{
$data = $this->getData();

if (empty($data->language))
if (JLanguageMultilang::isEnabled() && empty($data->language))
{
$data->language = JFactory::getLanguage()->getTag();
}
Expand Down

0 comments on commit 46523ec

Please sign in to comment.