]> git.mxchange.org Git - friendica.git/blobdiff - mod/rsd_xml.php
Merge branch 'develop' into rewrites/dbm_is_result
[friendica.git] / mod / rsd_xml.php
index 6f9c209fab5915e8f0f8c4e9dd0786f68f4dd0f3..13c84c3fcc47049e4367803bc12590d768488c80 100644 (file)
@@ -1,7 +1,8 @@
 <?php
 
-if(! function_exists('rsd_xml_content')) {
-function rsd_xml_content(&$a) {
+
+
+function rsd_xml_content(App &$a) {
        header ("Content-Type: text/xml");
        echo '<?xml version="1.0" encoding="UTF-8"?>
  <rsd version="1.0" xmlns="http://archipelago.phrasewise.com/rsd">
@@ -9,7 +10,7 @@ function rsd_xml_content(&$a) {
      <engineName>Friendica</engineName>
      <engineLink>http://friendica.com/</engineLink>
      <apis>
-       <api name="Twitter" preferred="true" apiLink="'.$a->get_baseurl().'/api/" blogID="">
+       <api name="Twitter" preferred="true" apiLink="'.App::get_baseurl().'/api/" blogID="">
          <settings>
            <docs>http://status.net/wiki/TwitterCompatibleAPI</docs>
            <setting name="OAuth">false</setting>
@@ -20,5 +21,4 @@ function rsd_xml_content(&$a) {
  </rsd>
        ';
 die();
-}
-}
+}
\ No newline at end of file