Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
{
if ($action == 'yes') {
require_once 'newsletter.inc.php';
- NewsLetter::subscribe();
+ NewsLetter::forGroup(NewsLetter::GROUP_XORG)->subscribe();
$this->UpdateOnYes();
}
public static function IsCandidate(User &$user, $candidate)
{
require_once 'newsletter.inc.php';
- $isSubscribed = NewsLetter::subscriptionState();
+ $isSubscribed = NewsLetter::forGroup(NewsLetter::GROUP_XORG)->subscriptionState();
if ($isSubscribed) {
Reminder::MarkCandidateAsAccepted($user->id(), $candidate);
}