Merge "Logging init mechanism for new section direct navigation"

This commit is contained in:
jenkins-bot 2021-02-01 17:08:50 +00:00 committed by Gerrit Code Review
commit 06f1004702

View file

@ -119,7 +119,14 @@ class WikiEditorHooks {
$data['init_mechanism'] = 'click';
}
} else {
$data['init_mechanism'] = 'url';
if (
$request->getVal( 'section' ) === 'new'
|| !$article->getPage()->exists()
) {
$data['init_mechanism'] = 'url-new';
} else {
$data['init_mechanism'] = 'url';
}
}
self::doEventLogging( 'init', $article, $data );