diff --git a/www/include/error.php b/www/include/error.php index db59603d43..2183a22050 100644 --- a/www/include/error.php +++ b/www/include/error.php @@ -13,11 +13,12 @@ * @license http://opensource.org/licenses/gpl-3.0 GPLv3 * @link www.phraseanet.com */ +$app = new Application(); $request = Symfony\Component\HttpFoundation\Request::createFromGlobals(); $locales = \Alchemy\Phrasea\Core::getAvailableLanguages(); -$current_locale = \Session_Handler::get_locale(); +$current_locale = $app['locale']; if ( ! $current_locale) { foreach ($locales as $code => $locale) {