OpenSearch cleanup; Firefox now sends you to the search page for empty searches inste...
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 1 Jul 2008 23:31:24 +0000 (23:31 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 1 Jul 2008 23:31:24 +0000 (23:31 +0000)
commitadd8c926ac9256effa2a346b3e1abaeda120ed07
tree396476f83e52f35fdda72233923f36e632e91db3
parentefddfe98e4ae0ce67c9cae409a1570372572ca6b
OpenSearch cleanup; Firefox now sends you to the search page for empty searches instead of the domain root (which may not even be a wiki).
This is done by adding the <moz:SearchForm> extension element with the Special:Search URL.

Removed the 24-character truncation on ShortName... neither Firefox nor IE seems to care about longer names, but both expect the ShortName and <link> title to match, and will think you have a duplicate search provider if they don't match because only one was truncated. (Besides, 24 was longer than the spec's limit of 16 -- why bother limiting at all if not to spec?)

The JSON suggestions are now no longer included in the OpenSearch description if the API is disabled, since the interface won't work.

Generally removed some hardcoded escape-then-stick-vars-in-string-output eww... Extension hooks now have a more general opportunity to alter or replace the OpenSearch URLs by tying into the OpenSearchUrls hook.
RELEASE-NOTES
docs/hooks.txt
opensearch_desc.php