r111587 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r111586‎ | r111587 | r111588 >
Date:21:53, 15 February 2012
Author:bsitu
Status:ok
Tags:
Comment:
Adding page_id to clicktracking additional_info for articles created from article creation workflow
Modified paths:
  • /trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php
@@ -99,12 +99,14 @@
100100 $token = wfGenerateToken();
101101 }
102102
 103+ $pageId = $title->getArticleID();
 104+
103105 $params = new FauxRequest( array(
104106 'action' => 'clicktracking',
105107 'eventid' => self::trackingCodePrefix() . $event,
106108 'token' => $token,
107109 'namespacenumber' => $title->getNamespace(),
108 - 'additional' => $title->getDBkey(),
 110+ 'additional' => $title->getDBkey() . ( $pageId ? '|' . $pageId : '' ),
109111 ) );
110112 $api = new ApiMain( $params, true );
111113 $api->execute();

Status & tagging log