db949bb802
Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
19 lines
352 B
PHP
19 lines
352 B
PHP
<?php
|
|
if(! function_exists('opensearch_content')) {
|
|
function opensearch_content(&$a) {
|
|
$tpl = get_markup_template('opensearch.tpl');
|
|
|
|
header("Content-type: application/opensearchdescription+xml");
|
|
|
|
$o = replace_macros($tpl, array(
|
|
'$baseurl' => $a->get_baseurl(),
|
|
'$nodename' => $a->get_hostname(),
|
|
));
|
|
|
|
echo $o;
|
|
|
|
killme();
|
|
}
|
|
}
|
|
?>
|