mirror of
https://github.com/friendica/friendica
synced 2024-11-16 13:27:40 +01:00
35abc4bb64
implement getMarkupTemplate function
22 lines
382 B
PHP
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();
|
|
}
|