From fd0841a8996900da361c33dc6efd9d638deec8aa Mon Sep 17 00:00:00 2001 From: David Lynch Date: Wed, 15 Jun 2022 02:13:36 -0500 Subject: [PATCH] Log if an edit attempt began from the sticky header Bug: T298634 Depends-On: I871494b6e783018b1433f294e09b0d53dded6c3d Change-Id: I07d3c91a63e78f091a1046ca49830e141f6ef8d4 --- includes/Hooks.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/Hooks.php b/includes/Hooks.php index c12478dd..dc30311f 100644 --- a/includes/Hooks.php +++ b/includes/Hooks.php @@ -272,6 +272,9 @@ class Hooks implements $data['init_mechanism'] = 'url'; } } + if ( $request->getRawVal( 'wvprov' ) === 'sticky-header' ) { + $data['init_mechanism'] .= '-sticky-header'; + } $this->doEventLogging( 'init', $article, $data ); }