From: vincent@cubedesigners.com Date: Wed, 25 Apr 2012 15:53:59 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=f2517f655f71fcfc06f612fb8972bb5575bfc70e;p=cubeextranet.git --- 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; } + } + ?>