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

github.com/nextcloud/templateeditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-01-11 21:45:27 +0300
committerRoeland Jago Douma <rullzer@owncloud.com>2016-01-11 21:45:27 +0300
commit56e5812702277aba49a585260594065d25853d61 (patch)
tree4cf47f60238cb8ee9e266b27e96a799362004729
parentc3d9ac1dcda6a435d63e9afed0abd700f0716b5f (diff)
Replace deprecated call
The code uses the depreacted private API that is about to be removed in https://github.com/owncloud/core/pull/21624
-rw-r--r--lib/mailtemplate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mailtemplate.php b/lib/mailtemplate.php
index 165c0a9..cfc179f 100644
--- a/lib/mailtemplate.php
+++ b/lib/mailtemplate.php
@@ -164,7 +164,7 @@ class MailTemplate extends \OC_Template {
* @return array with keys containing the path and values containing the name of a template
*/
public static function getEditableTemplates() {
- $l10n = \OC_L10N::get('templateeditor');
+ $l10n = \OC::$server->getL10NFactory()->get('templateeditor');
$templates = array(
'core/templates/mail.php' => $l10n->t('Sharing email - public link shares (HTML)'),
'core/templates/altmail.php' => $l10n->t('Sharing email - public link shares (plain text fallback)'),