mirror of
https://github.com/moodle/moodle.git
synced 2025-03-16 05:30:06 +01:00
As of 3.5 a search plugin can define the result orders it supports. When a search plugin defines multiple sort orders and the search is conducted without a context (no context query param in the URL), the code to load the available sort orders from the enabled search backend is never called. This patch gets the supported search orders for the enabled search engine regardless of context being provided or not. As prior, the search order selection will not display if the only result order option is relevance.