121000 fix bad merge

This commit is contained in:
Fred Tempez 2023-01-10 15:20:57 +01:00
parent 710f2cc2f0
commit a22e8745fe
2 changed files with 0 additions and 13 deletions

View File

@ -26,16 +26,6 @@ class helper
public static function translate($text)
{
$target = 'blog';
/** Collecte des dialogues des modules */
$url = $_SERVER['QUERY_STRING'];
$module = explode('/', $url);
if ($module === $target)
{
$dialogues = json_decode(file_get_contents('module/' . $target . '/i18n/fr_FR.json' ), true);
$data = array_merge($dialogues,[$text => '']);
file_put_contents ('module/' . $target . '/i18n/fr_FR.json', json_encode($data, JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT), LOCK_EX);
}
return (array_key_exists($text, core::$dialog) && !empty(core::$dialog[$text]) ? core::$dialog[$text] : $text);
}

View File

@ -1,3 +0,0 @@
{
}