set the correct language tag expected by JS
This commit is contained in:
parent
829b2b77b9
commit
b565415e1c
@ -233,12 +233,13 @@ class DocumentController extends Controller {
|
|||||||
if ($content && $view->file_put_contents($path, $content)) {
|
if ($content && $view->file_put_contents($path, $content)) {
|
||||||
$info = $view->getFileInfo($path);
|
$info = $view->getFileInfo($path);
|
||||||
$ret = $this->wopiParser->getUrlSrc($mimetype);
|
$ret = $this->wopiParser->getUrlSrc($mimetype);
|
||||||
|
$lolang = strtolower(str_replace('_', '-', $this->settings->getUserValue($this->uid, 'core', 'lang', 'en')));
|
||||||
$response = array(
|
$response = array(
|
||||||
'status' => 'success',
|
'status' => 'success',
|
||||||
'fileid' => $info['fileid'] . '_' . $this->settings->getSystemValue('instanceid'),
|
'fileid' => $info['fileid'] . '_' . $this->settings->getSystemValue('instanceid'),
|
||||||
'urlsrc' => $ret['urlsrc'],
|
'urlsrc' => $ret['urlsrc'],
|
||||||
'action' => $ret['action'],
|
'action' => $ret['action'],
|
||||||
'lolang' => $this->settings->getUserValue($this->uid, 'core', 'lang', 'en'),
|
'lolang' => $lolang;
|
||||||
'data' => \OCA\Files\Helper::formatFileInfo($info)
|
'data' => \OCA\Files\Helper::formatFileInfo($info)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user