From f2517f655f71fcfc06f612fb8972bb5575bfc70e Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Wed, 25 Apr 2012 15:53:59 +0000 Subject: [PATCH] --- inc/commons/class.common.tools.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/inc/commons/class.common.tools.php b/inc/commons/class.common.tools.php index 70cdc7ed4..e2ceb630a 100644 --- a/inc/commons/class.common.tools.php +++ b/inc/commons/class.common.tools.php @@ -166,7 +166,7 @@ class commonTools { $res.='H264 :
'; $res.='WEBM :
'; $res.=''; - $res.='' . __("Orientation de l'écran") . ''.__('Portrait').''.__('Paysage').''; + $res.='' . __("Orientation de l'écran") . '' . __('Portrait') . '' . __('Paysage') . ''; $res.='' . __("Largeur de l'écran") . ''; $res.='' . __("Hauteur de l'écran") . ''; $res.=''; @@ -254,6 +254,14 @@ class commonTools { cubeHTTP::downloadFile($tmpfile, 'favicon.zip'); } + public static function getDefaultLanguage() { + $available = explode(',', $_GET['available']); + header('Content-type: text/plain'); + ob_end_clean(); + echo cubeLang::getBrowserLang($available, $default); + exit; + } + public static function uglify() { $js = ''; if (isset($_POST['js'])) { @@ -287,5 +295,7 @@ class commonTools { unlink($tmp); exit; } + } + ?> -- 2.39.5