r86952 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86951‎ | r86952 | r86953 >
Date:17:06, 26 April 2011
Author:nimishg
Status:ok
Tags:
Comment:
added Namespace fix to faux api call
Modified paths:
  • /trunk/extensions/ClickTracking/ClickTracking.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ClickTracking/ClickTracking.hooks.php
@@ -262,7 +262,7 @@
263263 }
264264
265265 protected static function trackRequest( $suffix ) {
266 - global $wgRequest;
 266+ global $wgRequest, $wgTitle;
267267
268268 $session = $wgRequest->getVal( 'clicktrackingsession' );
269269 $event = $wgRequest->getVal( 'clicktrackingevent' );
@@ -273,6 +273,7 @@
274274 'eventid' => $event . $suffix,
275275 'token' => $session,
276276 'info' => $info,
 277+ 'namespacenumber' => $wgTitle->getNamespace(),
277278 ) );
278279 $api = new ApiMain( $params, true );
279280 $api->execute();

Status & tagging log