From 78507d964dc92ac2b2fd2e99abbf4110dbd4ca1c Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Thu, 30 Oct 2008 23:38:39 +0100 Subject: [PATCH] Properly advertise XRDS on / --- modules/platal.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/platal.php b/modules/platal.php index 9908013..d0c7e7c 100644 --- a/modules/platal.php +++ b/modules/platal.php @@ -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']) { -- 2.1.4