X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopensearch.php;h=8a427908bc244277bfca2e10c7602102b5151bf4;hb=6ef2fd56f78b3bfe1df59bbd35bd9fdb547b3291;hp=a599ddc1eddadfea648c9d755ed7a6ca1783a6a8;hpb=b61479ba6eb66a5d23ff997f204319bf934783e0;p=friendica.git diff --git a/mod/opensearch.php b/mod/opensearch.php index a599ddc1ed..8a427908bc 100644 --- a/mod/opensearch.php +++ b/mod/opensearch.php @@ -1,18 +1,20 @@ App::get_baseurl(), - '$nodename' => $a->get_hostname(), - )); + $tpl = get_markup_template('opensearch.tpl'); - echo $o; + header("Content-type: application/opensearchdescription+xml"); - killme(); + $o = replace_macros($tpl, [ + '$baseurl' => System::baseUrl(), + '$nodename' => $a->get_hostname(), + ]); - } -?> \ No newline at end of file + echo $o; + + killme(); +}