diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-05-20 10:47:20 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2020-07-23 21:19:21 +0200 |
commit | 5ec4708ced1cdca01eddd7e52377ab5e5f8b3290 (patch) | |
tree | 2d65bdd883c70ac12bee12e113f514cd59d3bdc2 /index.php | |
parent | 7b2ba6ef820335df682fbe3dcfaceef3a62cf4a5 (diff) | |
download | Shaarli-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.php | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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'); |