Index: trunk/extensions/ClickTracking/ClickTracking.hooks.php |
— | — | @@ -262,7 +262,7 @@ |
263 | 263 | } |
264 | 264 | |
265 | 265 | protected static function trackRequest( $suffix ) { |
266 | | - global $wgRequest; |
| 266 | + global $wgRequest, $wgTitle; |
267 | 267 | |
268 | 268 | $session = $wgRequest->getVal( 'clicktrackingsession' ); |
269 | 269 | $event = $wgRequest->getVal( 'clicktrackingevent' ); |
— | — | @@ -273,6 +273,7 @@ |
274 | 274 | 'eventid' => $event . $suffix, |
275 | 275 | 'token' => $session, |
276 | 276 | 'info' => $info, |
| 277 | + 'namespacenumber' => $wgTitle->getNamespace(), |
277 | 278 | ) ); |
278 | 279 | $api = new ApiMain( $params, true ); |
279 | 280 | $api->execute(); |