diff options
author | Bart Visscher <bartv@thisnet.nl> | 2011-09-09 20:51:53 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2011-09-09 22:19:15 +0200 |
commit | 760b47a62fe3a8bcf1f58da74ffdaefe33793f7e (patch) | |
tree | 587bacf51807c5a58d7c335cfb7c2644e2bd3615 /apps/files_publiclink | |
parent | 80f5942868d42bd6939c9242eca7213a3dc8c79d (diff) | |
download | nextcloud-server-760b47a62fe3a8bcf1f58da74ffdaefe33793f7e.tar.gz nextcloud-server-760b47a62fe3a8bcf1f58da74ffdaefe33793f7e.zip |
Use OC_Helper::linkTo also for absolute urls.
One central place to check for https.
Diffstat (limited to 'apps/files_publiclink')
-rw-r--r-- | apps/files_publiclink/admin.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/files_publiclink/admin.php b/apps/files_publiclink/admin.php index f5163547963..33d8f04a603 100644 --- a/apps/files_publiclink/admin.php +++ b/apps/files_publiclink/admin.php @@ -37,11 +37,7 @@ OC_App::setActiveNavigationEntry( "files_publiclink_administration" ); OC_Util::addScript( 'files_publiclink', 'admin' ); -if(isset($_SERVER['HTTPS'])) { - $baseUrl= "https://". $_SERVER['SERVER_NAME'] . OC_Helper::linkTo('files_publiclink','get.php'); -}else{ - $baseUrl= "http://". $_SERVER['SERVER_NAME'] . OC_Helper::linkTo('files_publiclink','get.php'); -} +$baseUrl = OC_Helper::linkTo('files_publiclink','get.php', null, true); // return template |