[MediaWiki-l] Does $wgOpenSearchDefaultLimit work?

Daniel Barrett danb at cimpress.com
Mon Feb 15 21:11:04 UTC 2016


Does the config variable $wgOpenSearchDefaultLimit have any effect in MediaWiki 1.26? I tried setting it in LocalSettings.php:

  $wgOpenSearchDefaultLimit = 20;

but it had no effect on the API call made by the wiki search box, which still sends "limit=10":

  https://mywiki/w/api.php?action=opensearch&format=json&search=x&namespace=0&limit=10&suggest=

I also can't find any references to this variable in the MediaWiki 1.26.2 source code; however, the docs say that this variable is still in use:

  https://www.mediawiki.org/wiki/Manual:$wgOpenSearchDefaultLimit

Thanks,
DanB




More information about the MediaWiki-l mailing list