From e098ae17ceb1896652be3f169cbb10e95bd244c3 Mon Sep 17 00:00:00 2001 From: Julien VAUBOURG Date: Wed, 8 Jul 2015 19:12:29 +0200 Subject: [PATCH] Remove _() redeclaration --- sources/config.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sources/config.php b/sources/config.php index cb1edbc..f930699 100644 --- a/sources/config.php +++ b/sources/config.php @@ -27,11 +27,6 @@ function configure() { define('PUBLIC_DIR', '/public'); } -// Gettext function -function _($string) { - return gettext($string); -} - // Before routing function before($route) { $lang_mapping = array( @@ -39,7 +34,7 @@ function before($route) { ); if(!isset($_SESSION['locale'])) { - $locale = explode(',', $_SERVER['HTTP_ACCEP_LANGUAGE']); + $locale = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); $_SESSION['locale'] = strtolower(substr(chop($locale[0]), 0, 2)); }