Properly advertise XRDS on /
authorAymeric Augustin <aymeric.augustin@m4x.org>
Thu, 30 Oct 2008 22:38:39 +0000 (23:38 +0100)
committerAymeric Augustin <aymeric.augustin@m4x.org>
Thu, 30 Oct 2008 22:38:39 +0000 (23:38 +0100)
modules/platal.php

index 9908013..d0c7e7c 100644 (file)
@@ -62,9 +62,8 @@ class PlatalModule extends PLModule
 
     function handler_index(&$page)
     {
-        global $globals;
-
         // Include X-XRDS-Location response-header for Yadis discovery
+        global $globals;
         header('X-XRDS-Location: ' . $globals->baseurl . '/openid/idp_xrds');
 
         // Redirect to the suitable page
@@ -470,6 +469,10 @@ Adresse de secours : " . Post::v('email') : ""));
 
     function handler_review(&$page, $action = null, $mode = null) 
     {
+        // Include X-XRDS-Location response-header for Yadis discovery
+        global $globals;
+        header('X-XRDS-Location: ' . $globals->baseurl . '/openid/idp_xrds');
+
         $this->load('review.inc.php');
         $dom = 'Review';
         if (@$GLOBALS['IS_XNET_SITE']) {