From: Aymeric Augustin Date: Thu, 30 Oct 2008 22:38:39 +0000 (+0100) Subject: Properly advertise XRDS on / X-Git-Tag: xorg/0.10.0~53 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=78507d964dc92ac2b2fd2e99abbf4110dbd4ca1c;p=platal.git Properly advertise XRDS on / --- 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']) {