Fix #1243 Phraseanet enabled languages is now configurable

This commit is contained in:
Romain Neutron
2013-07-10 16:51:15 +02:00
parent bf5d49cba9
commit 0ab927ec97
14 changed files with 92 additions and 20 deletions

View File

@@ -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));
}