Complete the substitution array with substitution array with all

possible keys
This commit is contained in:
Laurent Destailleur 2017-05-04 11:21:28 +02:00
parent a115d4877b
commit f543461e9b
2 changed files with 5 additions and 1 deletions

View File

@ -1133,6 +1133,9 @@ class FormMail extends Form
$vars['__SECUREKEYPAYPAL_MEMBER__']='';
}
}
$vars=complete_substitutions_array($vars, $langs, null, null);
return $vars;
}

View File

@ -4953,7 +4953,8 @@ function make_substitutions($text, $substitutionarray, $outputlangs=null)
}
/**
* Complete the $substitutionarray with more entries
* Complete the $substitutionarray with more entries.
* Can also add substitution keys coming from external module that had set the "substitutions=1" into module_part array. In this case, method completesubstitutionarray provided by module is called.
*
* @param array $substitutionarray Array substitution old value => new value value
* @param Translate $outputlangs Output language