aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-05-20 10:47:20 +0200
committerArthurHoaro <arthur@hoa.ro>2020-07-23 21:19:21 +0200
commit5ec4708ced1cdca01eddd7e52377ab5e5f8b3290 (patch)
tree2d65bdd883c70ac12bee12e113f514cd59d3bdc2 /index.php
parent7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5 (diff)
downloadShaarli-5ec4708ced1cdca01eddd7e52377ab5e5f8b3290.tar.gz
Shaarli-5ec4708ced1cdca01eddd7e52377ab5e5f8b3290.tar.zst
Shaarli-5ec4708ced1cdca01eddd7e52377ab5e5f8b3290.zip
Process OpenSearch controller through Slim
Also it was missing on the default template feeds
Diffstat (limited to 'index.php')
-rw-r--r--index.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/index.php b/index.php
index c3e0a5bf..04ec0d73 100644
--- a/index.php
+++ b/index.php
@@ -439,9 +439,7 @@ function renderPage($conf, $pluginManager, $bookmarkService, $history, $sessionM
439 439
440 // Display opensearch plugin (XML) 440 // Display opensearch plugin (XML)
441 if ($targetPage == Router::$PAGE_OPENSEARCH) { 441 if ($targetPage == Router::$PAGE_OPENSEARCH) {
442 header('Content-Type: application/xml; charset=utf-8'); 442 header('Location: ./open-search');
443 $PAGE->assign('serverurl', index_url($_SERVER));
444 $PAGE->renderPage('opensearch');
445 exit; 443 exit;
446 } 444 }
447 445
@@ -1575,6 +1573,7 @@ $app->group('', function () {
1575 $this->get('/daily-rss', '\Shaarli\Front\Controller\DailyController:rss')->setName('dailyrss'); 1573 $this->get('/daily-rss', '\Shaarli\Front\Controller\DailyController:rss')->setName('dailyrss');
1576 $this->get('/feed-atom', '\Shaarli\Front\Controller\FeedController:atom')->setName('feedatom'); 1574 $this->get('/feed-atom', '\Shaarli\Front\Controller\FeedController:atom')->setName('feedatom');
1577 $this->get('/feed-rss', '\Shaarli\Front\Controller\FeedController:rss')->setName('feedrss'); 1575 $this->get('/feed-rss', '\Shaarli\Front\Controller\FeedController:rss')->setName('feedrss');
1576 $this->get('/open-search', '\Shaarli\Front\Controller\OpenSearchController:index')->setName('opensearch');
1578 1577
1579 $this->get('/add-tag/{newTag}', '\Shaarli\Front\Controller\TagController:addTag')->setName('add-tag'); 1578 $this->get('/add-tag/{newTag}', '\Shaarli\Front\Controller\TagController:addTag')->setName('add-tag');
1580})->add('\Shaarli\Front\ShaarliMiddleware'); 1579})->add('\Shaarli\Front\ShaarliMiddleware');