X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopensearch.php;h=c61f4674b18757959d0de0854c953ea85ccbfad8;hb=ab60641e3ba731aca42ab510bdf9c2411db6aab4;hp=a599ddc1eddadfea648c9d755ed7a6ca1783a6a8;hpb=12dd06f72677321006e8327636f517a2cb13fc13;p=friendica.git diff --git a/mod/opensearch.php b/mod/opensearch.php index a599ddc1ed..c61f4674b1 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, array( + '$baseurl' => System::baseUrl(), + '$nodename' => $a->get_hostname(), + )); - } -?> \ No newline at end of file + echo $o; + + killme(); +}