escapeFullURL( 'search={searchTerms}' ); $suggest = htmlspecialchars($wgServer . $wgScriptPath . '/api.php?action=opensearch&search={searchTerms}'); $response = $wgRequest->response(); $response->header( 'Content-type: application/opensearchdescription+xml' ); # Set an Expires header so that squid can cache it for a short time # Short enough so that the sysadmin barely notices when $wgSitename is changed $expiryTime = 300; # 5 minutes $response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', time() + $expiryTime ) . ' GMT' ); echo << $shortName $siteName $favicon EOT; ?>