]> git.mxchange.org Git - friendica.git/blobdiff - mod/opensearch.php
Merge pull request #3541 from annando/bugfix-poller
[friendica.git] / mod / opensearch.php
index 1a7d4cd30715bff0b23d91ba4bbfcd42158b4ab7..dc7adeb05c264eb98e627c5745bf64725d4b76e3 100644 (file)
@@ -1,18 +1,19 @@
 <?php
-    function opensearch_content(App &$a) {
-       
-               $tpl = get_markup_template('opensearch.tpl');
-       
-               header("Content-type: application/opensearchdescription+xml");
-       
-               $o = replace_macros($tpl, array(
-                       '$baseurl' => App::get_baseurl(),
-                       '$nodename' => $a->get_hostname(),
-               ));
-               
-               echo $o;
-               
-               killme();
-               
-       }
-?>
\ No newline at end of file
+
+use Friendica\App;
+
+function opensearch_content(App $a) {
+
+       $tpl = get_markup_template('opensearch.tpl');
+
+       header("Content-type: application/opensearchdescription+xml");
+
+       $o = replace_macros($tpl, array(
+               '$baseurl' => App::get_baseurl(),
+               '$nodename' => $a->get_hostname(),
+       ));
+
+       echo $o;
+
+       killme();
+}