[-] BO : #PSTEST-1032 : Fix bug
This commit is contained in:
1 parent
4a6ffa7bcc
commit
eff5b22d04
1 file changed
+8
-2
@@ -191,12 +191,18 @@ class AdminTranslationsControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
if ($fd = fopen($path, 'w'))
|
if ($fd = fopen($path, 'w'))
|
||||||
{
|
{
|
||||||
unset($_POST['submitTranslations'.$type], $_POST['lang']);
|
// Unset all POST which are not translations
|
||||||
unset($_POST['token']);
|
unset(
|
||||||
|
$_POST['submitTranslations'.Tools::toCamelCase($type, true)],
|
||||||
|
$_POST['lang'],
|
||||||
|
$_POST['token']
|
||||||
|
);
|
||||||
|
|
||||||
$to_insert = array();
|
$to_insert = array();
|
||||||
foreach ($_POST as $key => $value)
|
foreach ($_POST as $key => $value)
|
||||||
if (!empty($value))
|
if (!empty($value))
|
||||||
$to_insert[$key] = $value;
|
$to_insert[$key] = $value;
|
||||||
|
|
||||||
// translations array is ordered by key (easy merge)
|
// translations array is ordered by key (easy merge)
|
||||||
ksort($to_insert);
|
ksort($to_insert);
|
||||||
$tab = ($fullmark ? Tools::strtoupper($fullmark) : 'LANG').($mark ? Tools::strtoupper($mark) : '');
|
$tab = ($fullmark ? Tools::strtoupper($fullmark) : 'LANG').($mark ? Tools::strtoupper($mark) : '');
|
||||||
|
|||||||
Reference in new issue
Block a user