T1817: Pass user language to Chwala API
This commit is contained in:
parent
478ad1c5e2
commit
37a7423889
1 changed files with 3 additions and 0 deletions
|
@ -936,6 +936,9 @@ class kolab_files_engine
|
||||||
// some HTTP server configurations require this header
|
// some HTTP server configurations require this header
|
||||||
$this->request->setHeader('accept', "application/json,text/javascript,*/*");
|
$this->request->setHeader('accept', "application/json,text/javascript,*/*");
|
||||||
|
|
||||||
|
// Localization
|
||||||
|
$this->request->setHeader('accept-language', $_SESSION['language']);
|
||||||
|
|
||||||
// set Referer which is used as an origin for cross-window
|
// set Referer which is used as an origin for cross-window
|
||||||
// communication with document editor iframe
|
// communication with document editor iframe
|
||||||
$host = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
|
$host = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue