1
0
Fork 0
friendica_2020-09-1_sharedH.../mod/opensearch.php
Adam Magness 35abc4bb64 get markup template
implement getMarkupTemplate function
2018-10-31 10:44:06 -04:00

22 lines
382 B
PHP

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