summaryrefslogtreecommitdiffstats
path: root/apps/bookmarks
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-14 16:44:15 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-14 16:44:15 +0200
commitb1bcc60d83866627b1b28a0eda336e0f246dbe8e (patch)
treea7100fbd8425e90c8b90888bc16a15349519038a /apps/bookmarks
parent721311c9099780ecc22b6b186ed79dc5c9c92271 (diff)
downloadnextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.tar.gz
nextcloud-server-b1bcc60d83866627b1b28a0eda336e0f246dbe8e.zip
reuse OC_L10N objects
Diffstat (limited to 'apps/bookmarks')
-rw-r--r--apps/bookmarks/bookmarksHelper.php2
-rw-r--r--apps/bookmarks/templates/bookmarklet.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/bookmarks/bookmarksHelper.php b/apps/bookmarks/bookmarksHelper.php
index 7ada69014fb..f1464be79de 100644
--- a/apps/bookmarks/bookmarksHelper.php
+++ b/apps/bookmarks/bookmarksHelper.php
@@ -94,7 +94,7 @@ function addBookmark($url, $title, $tags='') {
}
if(empty($title)) {
- $l = new OC_L10N('bookmarks');
+ $l = OC_L10N::get('bookmarks');
$title = $l->t('unnamed');
}
diff --git a/apps/bookmarks/templates/bookmarklet.php b/apps/bookmarks/templates/bookmarklet.php
index 5ea67f04df2..f7074462a79 100644
--- a/apps/bookmarks/templates/bookmarklet.php
+++ b/apps/bookmarks/templates/bookmarklet.php
@@ -1,7 +1,7 @@
<?php
function createBookmarklet() {
- $l = new OC_L10N('bookmarks');
+ $l = OC_L10N::get('bookmarks');
echo '<small>' . $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:') . '</small>'
. '<a class="bookmarklet" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open(\'' . OC_Helper::linkToAbsolute('bookmarks', 'addBm.php') . '?output=popup&url=\'+c(b.location),\'bkmk_popup\',\'left=\'+((a.screenX||a.screenLeft)+10)+\',top=\'+((a.screenY||a.screenTop)+10)+\',height=230px,width=230px,resizable=1,alwaysRaised=1\');a.setTimeout(function(){d.focus()},300);})();">'
. $l->t('Read later') . '</a>';