Merge "Log Special:Notifications page visits"

This commit is contained in:
jenkins-bot 2016-08-16 00:23:31 +00:00 committed by Gerrit Code Review
commit dc397a9ec4

View file

@ -158,6 +158,20 @@ class SpecialNotifications extends SpecialPage {
// For no-js support
$out->addModuleStyles( array( 'ext.echo.styles.notifications', 'ext.echo.styles.special' ) );
// Log visit
MWEchoEventLogging::actuallyLogTheEvent(
'EchoInteraction',
array(
'context' => 'archive',
'action' => 'special-page-visit',
'userId' => (int)$user->getId(),
'editCount' => (int)$user->getEditCount(),
'notifWiki' => wfWikiID(),
// Hack: Figure out if we are in the mobile skin
'mobile' => $out->getSkin()->getSkinName() === 'minerva',
)
);
}
/**