diff options
author | Sem <sembrestels@riseup.net> | 2012-11-30 23:36:09 +0000 |
---|---|---|
committer | root <root@ops.vz.lan> | 2012-11-30 23:37:14 +0000 |
commit | b4122be45233bdc67b0d0aec344bc41c4df4fb93 (patch) | |
tree | 0778697d5ecc39ee0dd9a8f1ec80882e06050536 /views/default | |
parent | 3d4e77addab334054c8cfb10e260782b6ef90d0e (diff) | |
download | elgg-b4122be45233bdc67b0d0aec344bc41c4df4fb93.tar.gz elgg-b4122be45233bdc67b0d0aec344bc41c4df4fb93.tar.bz2 |
Workarround openid 2 metatags.
Diffstat (limited to 'views/default')
-rwxr-xr-x | views/default/openid_server/metatags.php | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/views/default/openid_server/metatags.php b/views/default/openid_server/metatags.php index 422e3b74d..eddc174d4 100755 --- a/views/default/openid_server/metatags.php +++ b/views/default/openid_server/metatags.php @@ -1,21 +1,6 @@ <?php
-
- /**
- * Adds metatags to identify OpenID server for openid 1.0
- *
- * @package ElggOpenID
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Kevin Jardine <kevin@radagast.biz>
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- *
- */
-
- global $CONFIG;
- $owner = elgg_get_page_owner_entity();
- if ($owner && elgg_get_context() == 'profile') {
-?>
- <link rel="openid.server" href="<?php echo $CONFIG->wwwroot; ?>mod/openid_server/server.php" />
-<?php
- }
-?>
+$owner = elgg_get_page_owner_entity();
+echo '<link rel="openid2.provider openid.server" href="' . elgg_get_site_url() . 'mod/openid_server/server.php" />';
+if ($owner) {
+ echo '<link rel="openid2.local_id openid.delegate" href="' . elgg_get_site_url() . 'profile/' . $owner->username . '" />';
+}
|