From: Anne Limoges Date: Mon, 18 Feb 2013 16:53:49 +0000 (+0100) Subject: Typo. X-Git-Tag: xorg/1.1.7~2 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=427ef7074eef68e0bc50a644d8bee81e18568fa6;p=platal.git Typo. --- diff --git a/modules/xnetevents.php b/modules/xnetevents.php index feb9d7f..f5853aa 100644 --- a/modules/xnetevents.php +++ b/modules/xnetevents.php @@ -274,7 +274,7 @@ class XnetEventsModule extends PLModule foreach ($moments as $j => $v) { $subs[$j] = intval($v); - // retreive ohter field when more than one person + // retrieve other field when more than one person if ($subs[$j] == 2) { if (!isset($pers[$j]) || !is_numeric($pers[$j]) || $pers[$j] < 0) { $page->trigError("Tu dois choisir un nombre d'invités correct !"); @@ -319,7 +319,12 @@ class XnetEventsModule extends PLModule $total += $nb; } if ($updated !== false) { - $page->trigSuccess('Ton inscription à l\'événement a été mise à jour avec succès.'); + $evt = get_event_detail($eid); + if ($evt['topay'] > 0) { + $page->trigSuccess('Ton inscription à l\'événement a été mise à jour avec succès, tu peux payer ta participation en cliquant ci-dessous'); + } else { + $page->trigSuccess('Ton inscription à l\'événement a été mise à jour avec succès.'); + } subscribe_lists_event(S::i('uid'), $evt['short_name'], ($total > 0 ? 1 : 0), 0); if ($evt['subscription_notification'] != 'nobody') {