mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 09:26:05 +00:00
Merge "Log Special:Notifications page visits"
This commit is contained in:
commit
dc397a9ec4
|
@ -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',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue