Index: trunk/extensions/ContributionTracking/ContributionTracking_body.php |
— | — | @@ -31,11 +31,11 @@ |
32 | 32 | $tracked_contribution = array( |
33 | 33 | 'note' => $wgRequest->getText('comment', NULL), |
34 | 34 | 'referrer' => $wgRequest->getText('referrer', NULL), |
35 | | - 'anonymous' => $wgRequest->getText('comment-option', 0), |
| 35 | + 'anonymous' => ($wgRequest->getCheck('comment-option', 0) ? 0 : 1), |
36 | 36 | 'utm_source' => $wgRequest->getText('utm_source', NULL), |
37 | 37 | 'utm_medium' => $wgRequest->getText('utm_medium', NULL), |
38 | 38 | 'utm_campaign' => $wgRequest->getText('utm_campaign', NULL), |
39 | | - 'optout' => $wgRequest->getText('email', 0), |
| 39 | + 'optout' => ($wgRequest->getCheck('email', 0) ? 0 : 1), |
40 | 40 | 'language' => $wgRequest->getText('language', NULL), |
41 | 41 | 'ts' => $ts, |
42 | 42 | ); |