Move mod/opensearch to src/Module/OpenSearch
This commit is contained in:
parent
d252598821
commit
9f13ae6e73
4 changed files with 73 additions and 33 deletions
|
@ -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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue