Skip to content

Commit

Permalink
Update CurrentLocaleResolver.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Salamek authored Oct 6, 2020
1 parent ebeea6f commit 82b2b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dravencms/Locale/CurrentLocaleResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function findCurrentLocale()
}*/

// Set current locale model
if ($found = $this->localeRepository->getOneByLanguageCode($this->translator->getLocale())) {
if ($found = $this->localeRepository->getOneActiveByLanguageCode($this->translator->getLocale())) {
return $found;
} else {
//Not found
Expand Down

0 comments on commit 82b2b1b

Please sign in to comment.