]> git.mxchange.org Git - friendica.git/blob - mod/opensearch.php
Don't show the local community page on single user instances
[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, array(
13                 '$baseurl' => System::baseUrl(),
14                 '$nodename' => $a->get_hostname(),
15         ));
16
17         echo $o;
18
19         killme();
20 }