Index: trunk/extensions/ArticleCreationWorkflow/includes/ArticleCreationUtil.php |
— | — | @@ -71,16 +71,15 @@ |
72 | 72 | } |
73 | 73 | } |
74 | 74 | |
75 | | - self::clickTracking( $event, SpecialPage::getTitleFor( 'ArticleCreationLanding' ), $par ); |
| 75 | + self::clickTracking( $event, Title::newFromText( $par ) ); |
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
79 | 79 | * Tracking code that calls ClickTracking |
80 | 80 | * @param $event string the event name |
81 | 81 | * @param $title Object |
82 | | - * @param $info string - additional info for click tracking |
83 | 82 | */ |
84 | | - private static function clickTracking( $event, $title, $info = '' ) { |
| 83 | + private static function clickTracking( $event, $title ) { |
85 | 84 | // check if ClickTracking API is enabled |
86 | 85 | if ( !self::trackingEnabled() ) { |
87 | 86 | return; |
— | — | @@ -91,7 +90,7 @@ |
92 | 91 | 'eventid' => self::trackingCodePrefix() . $event, |
93 | 92 | 'token' => wfGenerateToken(), |
94 | 93 | 'namespacenumber' => $title->getNamespace(), |
95 | | - 'additional' => $info |
| 94 | + 'additional' => $title->getDBkey(), |
96 | 95 | ) ); |
97 | 96 | $api = new ApiMain( $params, true ); |
98 | 97 | $api->execute(); |