summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-10-29 09:39:22 +0200
committerGitHub <noreply@github.com>2016-10-29 09:39:22 +0200
commite48fa1c3370632b5f8a2dcdeeabda217f50b3539 (patch)
treefdc7176cffe1f6e0a306efe0ccce149584e7f896 /apps/files/lib
parent035890aeb1b6e540396fd3c81841b60ea6d76f94 (diff)
parenta78f6e95869272b2d5cf34bd3374a9208ae80870 (diff)
downloadnextcloud-server-e48fa1c3370632b5f8a2dcdeeabda217f50b3539.tar.gz
nextcloud-server-e48fa1c3370632b5f8a2dcdeeabda217f50b3539.zip
Merge pull request #1948 from nextcloud/move_away_lagacy_oc_l10n
Move away from legacy OC_L10N
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Helper.php b/apps/files/lib/Helper.php
index 26bc020c871..b6b209dea70 100644
--- a/apps/files/lib/Helper.php
+++ b/apps/files/lib/Helper.php
@@ -45,7 +45,7 @@ class Helper {
public static function buildFileStorageStatistics($dir) {
// information about storage capacities
$storageInfo = \OC_Helper::getStorageInfo($dir);
- $l = new \OC_L10N('files');
+ $l = \OC::$server->getL10N('files');
$maxUploadFileSize = \OCP\Util::maxUploadFilesize($dir, $storageInfo['free']);
$maxHumanFileSize = \OCP\Util::humanFileSize($maxUploadFileSize);
$maxHumanFileSize = $l->t('Upload (max. %s)', array($maxHumanFileSize));