summaryrefslogtreecommitdiff
path: root/plugins/OpenID/OpenIDPlugin.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-10-28 14:38:19 -0400
committerEvan Prodromou <evan@status.net>2009-10-28 14:38:19 -0400
commite25716d1801064c00cbb8d06313866f00476fbba (patch)
tree135e72affa787891439c17d2af62181bb5f82eb5 /plugins/OpenID/OpenIDPlugin.php
parent6c615f6801540d8b28cdc6d4ecf817943c11db34 (diff)
correctly output public XRDS <meta>
Diffstat (limited to 'plugins/OpenID/OpenIDPlugin.php')
-rw-r--r--plugins/OpenID/OpenIDPlugin.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/OpenID/OpenIDPlugin.php b/plugins/OpenID/OpenIDPlugin.php
index a933a1155..560da71e7 100644
--- a/plugins/OpenID/OpenIDPlugin.php
+++ b/plugins/OpenID/OpenIDPlugin.php
@@ -150,11 +150,15 @@ class OpenIDPlugin extends Plugin
* @return void
*/
- function onEndHeadChildren($action)
+ function onEndShowHeadElements($action)
{
- // for client side of OpenID authentication
- $action->element('meta', array('http-equiv' => 'X-XRDS-Location',
- 'content' => common_local_url('publicxrds')));
+ if ($action->trimmed('action') == 'public') {
+ // for client side of OpenID authentication
+ $action->element('meta', array('http-equiv' => 'X-XRDS-Location',
+ 'content' => common_local_url('publicxrds')));
+ }
+
+ return true;
}
/**