]> git.mxchange.org Git - friendica.git/blobdiff - mod/opensearch.php
Merge pull request #5899 from annando/avoid-flooding
[friendica.git] / mod / opensearch.php
index c61f4674b18757959d0de0854c953ea85ccbfad8..541002410076f22c7409a5a6ef72b715b2a03e36 100644 (file)
@@ -9,10 +9,10 @@ function opensearch_content(App $a) {
 
        header("Content-type: application/opensearchdescription+xml");
 
-       $o = replace_macros($tpl, array(
+       $o = replace_macros($tpl, [
                '$baseurl' => System::baseUrl(),
-               '$nodename' => $a->get_hostname(),
-       ));
+               '$nodename' => $a->getHostName(),
+       ]);
 
        echo $o;