Complete the substitution array with substitution array with all
possible keys
This commit is contained in:
parent
a115d4877b
commit
f543461e9b
@ -1133,6 +1133,9 @@ class FormMail extends Form
|
|||||||
$vars['__SECUREKEYPAYPAL_MEMBER__']='';
|
$vars['__SECUREKEYPAYPAL_MEMBER__']='';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$vars=complete_substitutions_array($vars, $langs, null, null);
|
||||||
|
|
||||||
return $vars;
|
return $vars;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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 array $substitutionarray Array substitution old value => new value value
|
||||||
* @param Translate $outputlangs Output language
|
* @param Translate $outputlangs Output language
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user