Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/bookmarks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2016-12-07 15:00:43 +0300
committerArthur Schiwon <blizzz@arthur-schiwon.de>2016-12-07 15:00:43 +0300
commitc4e95abfbaf9134aa3c605cde8270c384871f8c6 (patch)
tree75f434872db28a101760ec6c470e59473946be5a /templates
parent0133230626b3949980cf8570809053a470a9e776 (diff)
fix naming
Diffstat (limited to 'templates')
-rw-r--r--templates/main.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/main.php b/templates/main.php
index 5fc78d76..de7de6b2 100644
--- a/templates/main.php
+++ b/templates/main.php
@@ -19,11 +19,12 @@ $bookmarkletscript = bookmarklet($bookmarkleturl);
function bookmarklet($bookmarkleturl) {
$l = \OC::$server->getL10N('bookmarks');
+ $defaults = \OC::$server->getThemingDefaults();
$blet = "javascript:(function(){var a=window,b=document,c=encodeURIComponent,e=c(document.title),d=a.open('";
$blet .= $bookmarkleturl;
$blet .= "?output=popup&url='+c(b.location)+'&title='+e,'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=400px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300);})();";
$help_msg = $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:');
- $output = '<div id="bookmarklet_hint" class="bkm_hint">' . $help_msg . '</div><a class="button bookmarklet" href="' . $blet . '">' . $l->t('Add to Nextcloud') . '</a>';
+ $output = '<div id="bookmarklet_hint" class="bkm_hint">' . $help_msg . '</div><a class="button bookmarklet" href="' . $blet . '">' . $l->t('Add to ' . \OCP\Util::sanitizeHTML($defaults->getName())) . '</a>';
return $output;
}
?>