X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fplugins%2Fformidable_1_0%2Ftraiter%2Fenregistrement.php;fp=www%2Fplugins%2Fformidable_1_0%2Ftraiter%2Fenregistrement.php;h=6496789ea469fbec3556ac776fd4b0205b1f1a4c;hb=3b34d0137e672387909494967123983d45db1ffd;hp=8277067c48b64356067c28927d71634682334b2c;hpb=e302f5262d689fd50b5d8ed424ab1cb71f837751;p=lhc%2Fweb%2Fwww.git diff --git a/www/plugins/formidable_1_0/traiter/enregistrement.php b/www/plugins/formidable_1_0/traiter/enregistrement.php index 8277067c..6496789e 100644 --- a/www/plugins/formidable_1_0/traiter/enregistrement.php +++ b/www/plugins/formidable_1_0/traiter/enregistrement.php @@ -50,7 +50,7 @@ function traiter_enregistrement_dist($args, $retours){ 'id_formulaire' => $id_formulaire, 'id_auteur' => $id_auteur, 'cookie' => $cookie, - 'ip' => $GLOBALS['ip'], + 'ip' => $args['options']['ip'] == 'on' ? $GLOBALS['ip'] : '', 'date' => 'NOW()', 'statut' => $statut ) @@ -100,8 +100,8 @@ function traiter_enregistrement_dist($args, $retours){ $insertions ); } + $retours['message_ok'] .= "\n"._T('formidable:traiter_enregistrement_message_ok'); } - return $retours; }