Merge "Remove getCustomPrinter from ULS extension"

This commit is contained in:
jenkins-bot
2016-01-25 14:43:52 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 5 deletions

View File

@@ -23,10 +23,6 @@
*/
class ApiLanguageSearch extends ApiBase {
public function getCustomPrinter() {
return $this->getMain()->createPrinterByName( 'json' );
}
public function execute() {
$params = $this->extractRequestParams();
$search = $params['search'];

View File

@@ -22,7 +22,7 @@
// MediaWiki overrides for ULS defaults
$.fn.uls.defaults = $.extend( $.fn.uls.defaults, {
languages: mw.config.get( 'wgULSLanguages' ) || {},
searchAPI: mw.util.wikiScript( 'api' ) + '?action=languagesearch'
searchAPI: mw.util.wikiScript( 'api' ) + '?action=languagesearch&format=json'
} );
// No need of IME in the ULS language search bar