]> git.mxchange.org Git - friendica.git/blob - mod/opensearch.php
The central item fetch does work now and the API now uses these functions
[friendica.git] / mod / opensearch.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5
6 function opensearch_content(App $a) {
7
8         $tpl = get_markup_template('opensearch.tpl');
9
10         header("Content-type: application/opensearchdescription+xml");
11
12         $o = replace_macros($tpl, [
13                 '$baseurl' => System::baseUrl(),
14                 '$nodename' => $a->get_hostname(),
15         ]);
16
17         echo $o;
18
19         killme();
20 }