Skip to content
Snippets Groups Projects
Verified Commit 28ce9495 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #15432 TIME 0:05 Errors on welcome page installer

parent 83110836
No related branches found
No related tags found
No related merge requests found
......@@ -35,12 +35,15 @@ class AuthenticationController
const ROUTES_WITHOUT_AUTHENTICATION = [
'GET/authenticationInformations', 'PUT/versionsUpdateSQL', 'GET/validUrl', 'GET/authenticate/token', 'GET/images', 'POST/password', 'PUT/password', 'GET/passwordRules',
'GET/jnlp/{jnlpUniqueId}', 'GET/onlyOffice/mergedFile', 'POST/onlyOfficeCallback', 'POST/authenticate',
'GET/wopi/files/{id}', 'GET/wopi/files/{id}/contents', 'POST/wopi/files/{id}/contents','GET/onlyOffice/content','GET/languages/{lang}'
'GET/wopi/files/{id}', 'GET/wopi/files/{id}/contents', 'POST/wopi/files/{id}/contents','GET/onlyOffice/content', 'GET/languages/{lang}', 'GET/dev/lang'
];
public function getInformations(Request $request, Response $response)
{
$path = CoreConfigModel::getConfigPath();
$path = CoreConfigModel::getConfigPath();
if (!file_exists($path)) {
return $response->withStatus(403)->withJson(['errors' => 'No configuration file found']);
}
$hashedPath = md5($path);
$appName = CoreConfigModel::getApplicationName();
......
......@@ -184,13 +184,9 @@ class CoreController
public static function getAvailableCoreLanguages(Request $request, Response $response)
{
$files = array_diff(scandir('src/lang'), ['..', '.']);
$languages = [];
$arrLanguages = [];
foreach ($files as $value) {
$languages[] = str_replace('.json', '', $value) ;
}
foreach ($languages as $file) {
$file = str_replace('.json', '', $value) ;
$langName = explode('-', $file)[1];
$path = 'src/lang/' . $file . '.json';
$fileContent = file_get_contents($path);
......
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