mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-28 01:30:15 +00:00
Log Special:Notifications page visits
Bug: T121939 Change-Id: Icfe63fb8daa8e8fba029e22b4de3e4f65517c448
This commit is contained in:
parent
61e9957a95
commit
015acb5407
2
Echo.php
2
Echo.php
|
@ -568,7 +568,7 @@ $wgEchoConfig = array(
|
|||
),
|
||||
'EchoInteraction' => array(
|
||||
'enabled' => false,
|
||||
'revision' => 15180901,
|
||||
'revision' => 15823738,
|
||||
'client' => true,
|
||||
),
|
||||
)
|
||||
|
|
|
@ -157,6 +157,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