]> git.mxchange.org Git - friendica.git/blob - mod/opensearch.php
Merge pull request #6977 from annando/fix-reshare
[friendica.git] / mod / opensearch.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\Renderer;
5 use Friendica\Core\System;
6
7 function opensearch_content(App $a) {
8
9         $tpl = Renderer::getMarkupTemplate('opensearch.tpl');
10
11         header("Content-type: application/opensearchdescription+xml");
12
13         $o = Renderer::replaceMacros($tpl, [
14                 '$baseurl' => System::baseUrl(),
15                 '$nodename' => $a->getHostName(),
16         ]);
17
18         echo $o;
19
20         exit();
21 }