summaryrefslogtreecommitdiffstats
path: root/apps/user_openid
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-02-16 19:45:00 +0100
committerBart Visscher <bartv@thisnet.nl>2012-02-17 22:07:14 +0100
commitf47444e1f776912cbf141ec9cc3763110f4e3552 (patch)
treee50acafa0fc13b943aafc7b8f424cab142236363 /apps/user_openid
parent5f3c54922773068091dfe8b40e3b407512ef4cfe (diff)
downloadnextcloud-server-f47444e1f776912cbf141ec9cc3763110f4e3552.tar.gz
nextcloud-server-f47444e1f776912cbf141ec9cc3763110f4e3552.zip
Use separate function to make absolute urls
Diffstat (limited to 'apps/user_openid')
-rw-r--r--apps/user_openid/appinfo/app.php4
-rw-r--r--apps/user_openid/user.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_openid/appinfo/app.php b/apps/user_openid/appinfo/app.php
index 912019a9700..cbcbe544221 100644
--- a/apps/user_openid/appinfo/app.php
+++ b/apps/user_openid/appinfo/app.php
@@ -14,8 +14,8 @@ if(strpos($_SERVER["REQUEST_URI"],'?') and !strpos($_SERVER["REQUEST_URI"],'='))
}
}
-OC_Util::addHeader('link',array('rel'=>'openid.server', 'href'=>OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$userName));
-OC_Util::addHeader('link',array('rel'=>'openid.delegate', 'href'=>OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$userName));
+OC_Util::addHeader('link',array('rel'=>'openid.server', 'href'=>OC_Helper::linkToAbsolute( "user_openid", "user.php" ).'/'.$userName));
+OC_Util::addHeader('link',array('rel'=>'openid.delegate', 'href'=>OC_Helper::linkToAbsolute( "user_openid", "user.php" ).'/'.$userName));
OC_APP::registerPersonal('user_openid','settings');
diff --git a/apps/user_openid/user.php b/apps/user_openid/user.php
index a267e020507..8fec713aa71 100644
--- a/apps/user_openid/user.php
+++ b/apps/user_openid/user.php
@@ -43,7 +43,7 @@ if(!OC_User::userExists($USERNAME)){
OC_Log::write('user_openid',$USERNAME.' doesn\'t exist',OC_Log::WARN);
$USERNAME='';
}
-$IDENTITY=OC_Helper::linkTo( "user_openid", "user.php", null, true ).'/'.$USERNAME;
+$IDENTITY=OC_Helper::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME;
require_once 'phpmyid.php';