diff --git a/bookmarksHelper.php b/bookmarksHelper.php index 7ada6901..f1464be7 100644 --- a/bookmarksHelper.php +++ b/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/templates/bookmarklet.php b/templates/bookmarklet.php index 5ea67f04..f7074462 100644 --- a/templates/bookmarklet.php +++ b/templates/bookmarklet.php @@ -1,7 +1,7 @@ ' . $l->t('Drag this to your browser bookmarks and click it, when you want to bookmark a webpage quickly:') . '' . '' . $l->t('Read later') . '';