Log the context of the ULS in which no search results were found

Relies on updates to EventLogging schema. Diff:
https://meta.wikimedia.org/w/index.php?title=Schema%3AUniversalLanguageSelector&type=revision&diff=17799034&oldid=7327441

Bug: T179402
Change-Id: I2ff9ce9b40df16ed3c5e6970fb3b691af08cedec
This commit is contained in:
Amire80
2018-03-04 23:04:14 +02:00
parent ee76d4ad96
commit d6630a4780
7 changed files with 21 additions and 6 deletions

View File

@@ -367,7 +367,15 @@
},
onSelect: function ( language ) {
mw.uls.changeLanguage( language );
}
},
// Not actually used on sites with the gear icon
// in the interlanguage area, because this ULS
// will be a container for other ULS panels.
// However, this is used on sites with ULS
// in the personal bar, and in that case it has the same
// purpose as the selector in Display settings,
// so it has the same identifier.
ulsPurpose: 'interface-language'
} );
// Allow styles to apply first and position to work by