1
1
Fork 0
friendica_2019-12_sharedHos.../mod/opensearch.php
Hypolite Petovan 9774c95b80 Remove duplicate $baseurl template variable
- Remove unused $overwriteURL parameter in Renderer::replaceMacros
2019-05-02 09:55:48 -04:00

20 lines
318 B
PHP

<?php
use Friendica\App;
use Friendica\Core\Renderer;
function opensearch_content(App $a) {
$tpl = Renderer::getMarkupTemplate('opensearch.tpl');
header("Content-type: application/opensearchdescription+xml");
$o = Renderer::replaceMacros($tpl, [
'$nodename' => $a->getHostName(),
]);
echo $o;
exit();
}