Why are you disabling the API in the first place? Maybe, there's a better solution?
9 янв. 2017 г. 12:23 ПП пользователь "Daniel Barrett" <[email protected]> написал: > I notice that when the MediaWiki API is disabled (with $wgEnableAPI = > false), this also disables auto-suggestions in the search box. > > Assuming this is intentional... what's the friendliest way to forbid > general web access to the API but still allow search suggestions to appear? > I considered using the hook 'ApiBeforeMain' to return false unless > action=opensearch. Is that the most reliable/friendly solution? > > This is MediaWiki 1.28.0 with the default search engine, on an Ubuntu > 16.04LTS host. > > Thank you very much, > DanB > > > _______________________________________________ > Mediawiki-api mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api >
_______________________________________________ Mediawiki-api mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
