// report 1.4 fix from #PSCFI-4642 (regex for parsing mail subjects)
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12469 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1571,7 +1571,7 @@ class AdminTranslationsControllerCore extends AdminController
|
|||||||
if ($tab2 && isset($tab2[1]))
|
if ($tab2 && isset($tab2[1]))
|
||||||
{
|
{
|
||||||
$tab2[1] = trim(str_replace('\'', '', $tab2[1]));
|
$tab2[1] = trim(str_replace('\'', '', $tab2[1]));
|
||||||
if (preg_match('/Mail::l\(\''._PS_TRANS_PATTERN_.'\'(\)|,)/s', $tab2[2], $tab3))
|
if (preg_match('/Mail::l\(\''._PS_TRANS_PATTERN_.'\'/s', $tab2[2], $tab3))
|
||||||
$tab2[2] = $tab3[1];
|
$tab2[2] = $tab3[1];
|
||||||
$subject_mail[$tab2[1]] = $tab2[2];
|
$subject_mail[$tab2[1]] = $tab2[2];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user