Bugfix: relativetimeformat files should be js

because they have a function
This commit is contained in:
djmaze 2020-10-18 20:02:46 +02:00
parent 15e07a73e9
commit 8cd2bd46d8
7 changed files with 1 additions and 1 deletions

View file

@ -1074,7 +1074,7 @@ class ServiceActions
$sTimeFormat = ''; $sTimeFormat = '';
$options = [$sLanguage, \substr($sLanguage, 0, 2), 'en']; $options = [$sLanguage, \substr($sLanguage, 0, 2), 'en'];
foreach ($options as $lang) { foreach ($options as $lang) {
$sFileName = APP_VERSION_ROOT_PATH.'app/localization/relativetimeformat/'.$lang.'.json'; $sFileName = APP_VERSION_ROOT_PATH.'app/localization/relativetimeformat/'.$lang.'.js';
if (\is_file($sFileName)) { if (\is_file($sFileName)) {
$sTimeFormat = \preg_replace('/^\\s+/', '', \file_get_contents($sFileName)); $sTimeFormat = \preg_replace('/^\\s+/', '', \file_get_contents($sFileName));
break; break;