friendica_2021.01_tupambae_.../mod/opensearch.php
Hypolite Petovan e36f2bb1fb Use short form array syntax everywhere
- Add short form array syntax to po2php.php generation
2018-01-15 14:07:17 -05:00

21 lines
337 B
PHP

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