X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fopensearch.php;h=c61f4674b18757959d0de0854c953ea85ccbfad8;hb=c54a2c1e83822f6e043b449468570d2c9ed3ab3a;hp=f3d55a102950673255158347af47db6c64937d1c;hpb=0c764684bb32a9432fd161e62db907efb78af1a5;p=friendica.git diff --git a/mod/opensearch.php b/mod/opensearch.php index f3d55a1029..c61f4674b1 100644 --- a/mod/opensearch.php +++ b/mod/opensearch.php @@ -1,18 +1,20 @@ $a->get_baseurl(), - '$nodename' => $a->get_hostname(), - )); +function opensearch_content(App $a) { - echo $o; + $tpl = get_markup_template('opensearch.tpl'); - killme(); - } + header("Content-type: application/opensearchdescription+xml"); + + $o = replace_macros($tpl, array( + '$baseurl' => System::baseUrl(), + '$nodename' => $a->get_hostname(), + )); + + echo $o; + + killme(); } -?>