From 74e32ee809fd9d725849a20ba1b0b0f37704d416 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 30 Dec 2014 09:58:31 +0000 Subject: [PATCH] --- inc/commons/class.common.tools.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/commons/class.common.tools.php b/inc/commons/class.common.tools.php index b750325d9..dbb7b4f14 100644 --- a/inc/commons/class.common.tools.php +++ b/inc/commons/class.common.tools.php @@ -573,11 +573,15 @@ class commonTools { public static function getDefaultLanguage() { $available = explode(',', $_GET['available']); + $accept = null; + if (isset($_GET['accept'])) { + $accept = base64_decode($_GET['accept']); + } header('Content-type: text/plain'); header('Access-Control-Allow-Origin: *', true); header('Access-Control-Allow-Methods: GET', true); ob_end_clean(); - echo cubeLang::getBrowserLang($available, true); + echo cubeLang::getBrowserLang($available, true, $accept); exit; } -- 2.39.5