summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks/templates
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 /apps/bookmarks/templates
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 'apps/bookmarks/templates')
-rw-r--r--apps/bookmarks/templates/list.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/bookmarks/templates/list.php b/apps/bookmarks/templates/list.php
index a6053184aa2..d4215e82ddb 100644
--- a/apps/bookmarks/templates/list.php
+++ b/apps/bookmarks/templates/list.php
@@ -2,7 +2,7 @@
<h2 class="bookmarks_headline"><?php echo isset($_GET["tag"]) ? 'Bookmarks with tag: ' . urldecode($_GET["tag"]) : 'All bookmarks'; ?></h2>
<div class="bookmarks_menu">
<input type="button" class="bookmarks_addBtn" value="Add Bookmark"/>&nbsp;
- <a class="bookmarks_addBml" href="javascript:var url = encodeURIComponent(location.href);window.open('<?php echo (isset($_SERVER['HTTPS']) ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . OC_Helper::linkTo('bookmarks', 'addBm.php'); ?>?url='+url, 'owncloud-bookmarks');" title="Drag this to your browser bookmarks and click it, when you want to bookmark a webpage.">Add page to ownCloud</a>
+ <a class="bookmarks_addBml" href="javascript:var url = encodeURIComponent(location.href);window.open('<?php echo OC_Helper::linkTo('bookmarks', 'addBm.php', null, true); ?>?url='+url, 'owncloud-bookmarks');" title="Drag this to your browser bookmarks and click it, when you want to bookmark a webpage.">Add page to ownCloud</a>
</div>
<div class="bookmarks_add">
<p><label class="bookmarks_label">Address</label><input type="text" id="bookmark_add_url" class="bookmarks_input" /></p>