Index: trunk/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php |
— | — | @@ -448,7 +448,8 @@ |
449 | 449 | public static function trackEditSuccess( &$article, &$user, $text, |
450 | 450 | $summary, $minoredit, $watchthis, $sectionanchor, &$flags, |
451 | 451 | $revision, &$status, $baseRevId /*, &$redirect */ ) { // $redirect not passed in 1.18wmf1 |
452 | | - self::trackEvent( 'edit_success', $article->getTitle(), $baseRevId ); |
| 452 | + $revID = $revision instanceof Revision ? $revision->getID() : 0; |
| 453 | + self::trackEvent( 'edit_success', $article->getTitle(), $revID ); |
453 | 454 | return true; |
454 | 455 | } |
455 | 456 | |