mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Fix #1243 Phraseanet enabled languages is now configurable
This commit is contained in:
@@ -1671,7 +1671,7 @@ class User_Adapter implements User_Interface, cache_cacheableInterface
|
||||
|
||||
public function set_locale($locale)
|
||||
{
|
||||
if (!array_key_exists($locale, $this->app->getAvailableLanguages())) {
|
||||
if (!array_key_exists($locale, $this->app['locales.available'])) {
|
||||
throw new \InvalidArgumentException(sprintf('Locale %s is not recognized', $locale));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user