diff options
author | VirtualTam <virtualtam@flibidi.net> | 2015-11-22 17:53:24 +0100 |
---|---|---|
committer | VirtualTam <virtualtam@flibidi.net> | 2015-11-22 17:53:24 +0100 |
commit | c07e166aa265184db16e8c82ce18a98596cfb3c9 (patch) | |
tree | 8747425b4388df54296a9aa104d6fa52b623a1c9 /index.php | |
parent | da08b65de18aec252347f954c7560377cd8ea742 (diff) | |
parent | 8f8113b94beb46f5deb84e393a95237f59969bbb (diff) | |
download | Shaarli-c07e166aa265184db16e8c82ce18a98596cfb3c9.tar.gz Shaarli-c07e166aa265184db16e8c82ce18a98596cfb3c9.tar.zst Shaarli-c07e166aa265184db16e8c82ce18a98596cfb3c9.zip |
Merge pull request #376 from ArthurHoaro/opensearch
Fixes #176 - Add opensearch functionality
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1204,6 +1204,14 @@ function renderPage() | |||
1204 | exit; | 1204 | exit; |
1205 | } | 1205 | } |
1206 | 1206 | ||
1207 | // Display openseach plugin (XML) | ||
1208 | if ($targetPage == Router::$PAGE_OPENSEARCH) { | ||
1209 | header('Content-Type: application/xml; charset=utf-8'); | ||
1210 | $PAGE->assign('serverurl', index_url($_SERVER)); | ||
1211 | $PAGE->renderPage('opensearch'); | ||
1212 | exit; | ||
1213 | } | ||
1214 | |||
1207 | // -------- User clicks on a tag in a link: The tag is added to the list of searched tags (searchtags=...) | 1215 | // -------- User clicks on a tag in a link: The tag is added to the list of searched tags (searchtags=...) |
1208 | if (isset($_GET['addtag'])) | 1216 | if (isset($_GET['addtag'])) |
1209 | { | 1217 | { |