X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Ffunction.test_email.php;h=932c998b62461a396a51316718b64ce447927019;hb=b69727b412cae8449a78dee9ec79ddc70aab985f;hp=d9e68ff6718f19b2656e53b2896cec8bab2ba063;hpb=756ff73fbb0cdd01cce2eda27ba18e1cc99bd735;p=platal.git diff --git a/plugins/function.test_email.php b/plugins/function.test_email.php index d9e68ff..932c998 100644 --- a/plugins/function.test_email.php +++ b/plugins/function.test_email.php @@ -20,11 +20,13 @@ ***************************************************************************/ function smarty_function_test_email($params, &$smarty) { - $label = isset($params['title']) ? $params['title'] : 'Envoyer un mail de test'; - $forlife = isset($params['forlife']) ? "'" . $params['forlife'] . "'" : ''; + $label = isset($params['title']) ? $params['title'] : 'Envoyer un email de test'; + $token = "'" . S::v('xsrf_token') . (isset($params['hruid']) ? "', " : "'"); + $hruid = isset($params['hruid']) ? "'" . $params['hruid'] . "'" : ''; return '
' . '

' - . '
' + . ' ' + . ' ' . '
' . '
' . '
';