]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Update XML generation and list of actions in public XRDS
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 12 Apr 2009 19:34:38 +0000 (15:34 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 12 Apr 2009 19:39:38 +0000 (15:39 -0400)
Updated the XML generation calls and list of actions in the public
XRDS document.

actions/publicxrds.php

index aad59d779e409d1deefe01ded3cb1b89a979d0cd..2c52f12468c9e5ef5af72f7a077b25515f529a74 100644 (file)
@@ -51,7 +51,7 @@ class PublicxrdsAction extends Action
 {
     /**
      * Is read only?
-     * 
+     *
      * @return boolean true
      */
     function isReadOnly()
@@ -61,7 +61,7 @@ class PublicxrdsAction extends Action
 
     /**
      * Class handler.
-     * 
+     *
      * @param array $args array of arguments
      *
      * @return nothing
@@ -70,24 +70,24 @@ class PublicxrdsAction extends Action
     {
         parent::handle($args);
         header('Content-Type: application/xrds+xml');
-        common_start_xml();
+        $this->startXML();
         $this->elementStart('XRDS', array('xmlns' => 'xri://$xrds'));
         $this->elementStart('XRD', array('xmlns' => 'xri://$xrd*($v*2.0)',
                                           'xmlns:simple' => 'http://xrds-simple.net/core/1.0',
                                           'version' => '2.0'));
         $this->element('Type', null, 'xri://$xrds*simple');
-        foreach (array('finishopenidlogin', 'finishaddopenid', 'finishimmediate') as $finish) {
+        foreach (array('finishopenidlogin', 'finishaddopenid') as $finish) {
             $this->showService(Auth_OpenID_RP_RETURN_TO_URL_TYPE,
                                 common_local_url($finish));
         }
         $this->elementEnd('XRD');
         $this->elementEnd('XRDS');
-        common_end_xml();
+        $this->endXML();
     }
 
     /**
      * Show service.
-     * 
+     *
      * @param string $type    XRDS type
      * @param string $uri     URI
      * @param array  $params  type parameters, null by default