Index: trunk/extensions/CustomUserSignup/CustomUserSignup.hooks.php |
— | — | @@ -124,6 +124,19 @@ |
125 | 125 | |
126 | 126 | setcookie( 'acctcreation' , $buckets['AccountCreation'][0] , |
127 | 127 | time() + 60 * 60 * 24 * 365 ); |
| 128 | + |
| 129 | + $session = $wgRequest->getCookie( 'clicktrackingsession', "" ); |
| 130 | + if ( $session !== null ) { |
| 131 | + $params = new FauxRequest( array( |
| 132 | + 'action' => 'clicktracking', |
| 133 | + 'eventid' => 'account-created', |
| 134 | + 'token' => $session, |
| 135 | + 'info' => 'account-activity', |
| 136 | + ) ); |
| 137 | + $api = new ApiMain( $params, true ); |
| 138 | + $api->execute(); |
| 139 | + } |
| 140 | + |
128 | 141 | } |
129 | 142 | return true; |
130 | 143 | } |