aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2015-11-22 17:53:24 +0100
committerVirtualTam <virtualtam@flibidi.net>2015-11-22 17:53:24 +0100
commitc07e166aa265184db16e8c82ce18a98596cfb3c9 (patch)
tree8747425b4388df54296a9aa104d6fa52b623a1c9 /index.php
parentda08b65de18aec252347f954c7560377cd8ea742 (diff)
parent8f8113b94beb46f5deb84e393a95237f59969bbb (diff)
downloadShaarli-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.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/index.php b/index.php
index 7bcd0d15..0a64ca21 100644
--- a/index.php
+++ b/index.php
@@ -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 {