From 9e8bcad31d9465ce6affab3c4bc68c162e2daf12 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Fri, 21 Sep 2012 16:40:09 +0200 Subject: [PATCH] Update common files --- www/include/error.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {