1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/hotspot_ynh.git synced 2024-09-03 19:25:53 +02:00

Remove _() redeclaration

This commit is contained in:
Julien VAUBOURG 2015-07-08 19:12:29 +02:00
parent d7b3aaf910
commit e098ae17ce

View file

@ -27,11 +27,6 @@ function configure() {
define('PUBLIC_DIR', '<TPL:NGINX_LOCATION>/public'); define('PUBLIC_DIR', '<TPL:NGINX_LOCATION>/public');
} }
// Gettext function
function _($string) {
return gettext($string);
}
// Before routing // Before routing
function before($route) { function before($route) {
$lang_mapping = array( $lang_mapping = array(
@ -39,7 +34,7 @@ function before($route) {
); );
if(!isset($_SESSION['locale'])) { 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)); $_SESSION['locale'] = strtolower(substr(chop($locale[0]), 0, 2));
} }