From: Vincent Zanotti Date: Sun, 24 Aug 2008 18:32:02 +0000 (+0200) Subject: Converts the test_email smarty plugin to hruid. X-Git-Tag: xorg/0.10.0~86^2~23 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=8514d27d25a5db8c6fe926ffa5ff081910985f23;p=platal.git Converts the test_email smarty plugin to hruid. Signed-off-by: Vincent Zanotti --- diff --git a/plugins/function.test_email.php b/plugins/function.test_email.php index ebdce6e..932c998 100644 --- a/plugins/function.test_email.php +++ b/plugins/function.test_email.php @@ -21,11 +21,11 @@ function smarty_function_test_email($params, &$smarty) { $label = isset($params['title']) ? $params['title'] : 'Envoyer un email de test'; - $token = "'" . S::v('xsrf_token') . (isset($params['forlife']) ? "', " : "'"); - $forlife = isset($params['forlife']) ? "'" . $params['forlife'] . "'" : ''; + $token = "'" . S::v('xsrf_token') . (isset($params['hruid']) ? "', " : "'"); + $hruid = isset($params['hruid']) ? "'" . $params['hruid'] . "'" : ''; return '
' . '

' - . '
' + . ' ' . ' ' . '
' . '
' diff --git a/templates/admin/utilisateurs.tpl b/templates/admin/utilisateurs.tpl index 67fdaa9..924ed8f 100644 --- a/templates/admin/utilisateurs.tpl +++ b/templates/admin/utilisateurs.tpl @@ -375,7 +375,7 @@ Pour ceci changer ses permissions en 'disabled'. {javascript name="ajax"} -{test_email forlife=$user->forlifeEmail()} +{test_email hruid=$user->login()}
{xsrf_token_field}