aboutsummaryrefslogtreecommitdiff
path: root/views/default/openid_server
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-11-05 08:29:09 +0000
committerroot <root@ops.vz.lan>2012-11-05 08:29:16 +0000
commitbc0ed096c45e6dd3b31859cb8adc577b6a548d39 (patch)
tree3b2a69b3b2bb68211507a1d4ee59cc017e15584a /views/default/openid_server
parent10a6d8240b57a8528fd983183ac22487526fad3d (diff)
downloadelgg-bc0ed096c45e6dd3b31859cb8adc577b6a548d39.tar.gz
elgg-bc0ed096c45e6dd3b31859cb8adc577b6a548d39.tar.bz2
remove error logs and few fixes.
Diffstat (limited to 'views/default/openid_server')
-rwxr-xr-xviews/default/openid_server/metatags.php7
-rwxr-xr-xviews/default/openid_server/metatags.php.old23
2 files changed, 6 insertions, 24 deletions
diff --git a/views/default/openid_server/metatags.php b/views/default/openid_server/metatags.php
index 9b486568e..422e3b74d 100755
--- a/views/default/openid_server/metatags.php
+++ b/views/default/openid_server/metatags.php
@@ -1,7 +1,7 @@
<?php
/**
- * Adds metatags to identify OpenID server
+ * 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
@@ -12,5 +12,10 @@
*/
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
+ }
+?>
diff --git a/views/default/openid_server/metatags.php.old b/views/default/openid_server/metatags.php.old
deleted file mode 100755
index fddca8ceb..000000000
--- a/views/default/openid_server/metatags.php.old
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
- /**
- * Adds metatags to identify OpenID server
- *
- * @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/
- *
- */
-
-?>
-
-<!--
-
-why does this not work?
-
-<link rel="openid.server" href="<?php print $CONFIG->wwwroot; ?>mod/openid_server/server.php" />
-<link rel="openid2.provider" href="<?php print $CONFIG->wwwroot; ?>mod/openid_server/server.php" />
-
---> \ No newline at end of file