summaryrefslogtreecommitdiffstats
path: root/lib/util.php
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 /lib/util.php
parent5f3c54922773068091dfe8b40e3b407512ef4cfe (diff)
downloadnextcloud-server-f47444e1f776912cbf141ec9cc3763110f4e3552.tar.gz
nextcloud-server-f47444e1f776912cbf141ec9cc3763110f4e3552.zip
Use separate function to make absolute urls
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php
index 43fb4413f04..4ba04fff3e8 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -248,7 +248,7 @@ class OC_Util {
*/
public static function checkAppEnabled($app){
if( !OC_App::isEnabled($app)){
- header( 'Location: '.OC_Helper::linkTo( '', 'index.php' , true));
+ header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' ));
exit();
}
}
@@ -259,7 +259,7 @@ class OC_Util {
public static function checkLoggedIn(){
// Check if we are a user
if( !OC_User::isLoggedIn()){
- header( 'Location: '.OC_Helper::linkTo( '', 'index.php' , true));
+ header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' ));
exit();
}
}
@@ -271,7 +271,7 @@ class OC_Util {
// Check if we are a user
self::checkLoggedIn();
if( !OC_Group::inGroup( OC_User::getUser(), 'admin' )){
- header( 'Location: '.OC_Helper::linkTo( '', 'index.php' , true));
+ header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' ));
exit();
}
}