From 98db623f0717bb2cefc6d874aa1a4dc168b529dc Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Fri, 18 Sep 2015 20:44:38 +0300 Subject: [PATCH] Remove getL10N --- lib/config.php | 4 ---- lib/db/member.php | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/config.php b/lib/config.php index b4e59067..3d5848bf 100644 --- a/lib/config.php +++ b/lib/config.php @@ -45,10 +45,6 @@ class Config { return true; } - public static function getL10n(){ - return \OCP\Util::getL10N(self::APP_NAME); - } - public static function getConverter(){ return self::getAppValue('converter', 'off'); } diff --git a/lib/db/member.php b/lib/db/member.php index 9d70b843..a0db4dba 100644 --- a/lib/db/member.php +++ b/lib/db/member.php @@ -36,7 +36,7 @@ class Member extends \OCA\Documents\Db{ protected $loadStatement = 'SELECT * FROM `*PREFIX*documents_member` WHERE `member_id`= ?'; public static function getGuestPostfix(){ - return '(' . \OCA\Documents\Config::getL10n()->t('guest') . ')'; + return '(' . \OC::$server->getL10n('documents')->t('guest') . ')'; }