1
0
Fork 0

Move mod/opensearch to src/Module/OpenSearch

This commit is contained in:
Philipp Holzer 2019-05-18 17:43:58 +02:00
commit 9f13ae6e73
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 73 additions and 33 deletions

View file

@ -1,19 +0,0 @@
<?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();
}