Skip to content
Snippets Groups Projects
Commit d261076c authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #14136 TIME 0:10 fix get lang

parent 176c50ed
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ class AuthenticationController ...@@ -37,7 +37,7 @@ class AuthenticationController
'GET/installer/prerequisites', 'GET/installer/databaseConnection', 'GET/installer/sqlDataFiles', 'GET/installer/docservers', 'GET/installer/custom', 'GET/installer/prerequisites', 'GET/installer/databaseConnection', 'GET/installer/sqlDataFiles', 'GET/installer/docservers', 'GET/installer/custom',
'POST/installer/custom', 'POST/installer/database', 'POST/installer/docservers', 'POST/installer/customization', 'POST/installer/custom', 'POST/installer/database', 'POST/installer/docservers', 'POST/installer/customization',
'PUT/installer/administrator', 'DELETE/installer/lock', 'PUT/installer/administrator', 'DELETE/installer/lock',
'GET/wopi/files/{id}', 'GET/wopi/files/{id}/contents', 'POST/wopi/files/{id}/contents','GET/onlyOffice/content', 'GET/wopi/files/{id}', 'GET/wopi/files/{id}/contents', 'POST/wopi/files/{id}/contents','GET/onlyOffice/content','GET/languages/{lang}',
]; ];
public function getInformations(Request $request, Response $response) public function getInformations(Request $request, Response $response)
......
...@@ -36,7 +36,7 @@ class LanguageController ...@@ -36,7 +36,7 @@ class LanguageController
if (is_file("src/frontend/lang/lang-{$args['language']}.json")) { if (is_file("src/frontend/lang/lang-{$args['language']}.json")) {
$file = file_get_contents("src/frontend/lang/lang-{$args['language']}.json"); $file = file_get_contents("src/frontend/lang/lang-{$args['language']}.json");
$language = json_decode($file, true); $language['lang'] = json_decode($file, true);
} }
$customId = CoreConfigModel::getCustomId(); $customId = CoreConfigModel::getCustomId();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment