summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2011-09-09 20:51:53 +0200
committerBart Visscher <bartv@thisnet.nl>2011-09-09 22:19:15 +0200
commit760b47a62fe3a8bcf1f58da74ffdaefe33793f7e (patch)
tree587bacf51807c5a58d7c335cfb7c2644e2bd3615 /settings
parent80f5942868d42bd6939c9242eca7213a3dc8c79d (diff)
downloadnextcloud-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 'settings')
-rw-r--r--settings/templates/personal.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/templates/personal.php b/settings/templates/personal.php
index decda043b8a..65a6f12712b 100644
--- a/settings/templates/personal.php
+++ b/settings/templates/personal.php
@@ -33,7 +33,7 @@
<p class="personalblock">
<strong>WebDAV</strong>
- <?php echo ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].OC::$WEBROOT.'/files/webdav.php'; ?><br />
+ <?php echo OC_Helper::linkTo('files', 'webdav.php', null, true); ?><br />
<em><?php echo $l->t('use this address to connect to your ownCloud in your file manager');?></em>
</p>