mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/WikiEditor
synced 2024-11-14 19:31:55 +00:00
Merge "Logging init mechanism for new section direct navigation"
This commit is contained in:
commit
06f1004702
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue