X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=01816947a3727bfb30da16099f86549d75e4467b;hb=refs%2Fpull%2F376%2Fhead;hp=b06dd50ce0a1e957cc530affeaf5ac041287f6c3;hpb=44d60adc5e2fa547bc49620f7e647794f0cad631;p=github%2Fshaarli%2FShaarli.git diff --git a/index.php b/index.php index b06dd50c..01816947 100644 --- a/index.php +++ b/index.php @@ -1204,6 +1204,14 @@ function renderPage() exit; } + // Display openseach plugin (XML) + if ($targetPage == Router::$PAGE_OPENSEARCH) { + header('Content-Type: application/xml; charset=utf-8'); + $PAGE->assign('serverurl', index_url($_SERVER)); + $PAGE->renderPage('opensearch'); + exit; + } + // -------- User clicks on a tag in a link: The tag is added to the list of searched tags (searchtags=...) if (isset($_GET['addtag'])) {