From b1bcc60d83866627b1b28a0eda336e0f246dbe8e Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sat, 14 Apr 2012 16:44:15 +0200 Subject: reuse OC_L10N objects --- settings/personal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'settings/personal.php') diff --git a/settings/personal.php b/settings/personal.php index 07030109de7..41499657ac7 100755 --- a/settings/personal.php +++ b/settings/personal.php @@ -35,7 +35,7 @@ array_unshift($languageCodes,$lang); $languageNames=include 'languageCodes.php'; $languages=array(); foreach($languageCodes as $lang){ - $l=new OC_L10N('settings',$lang); + $l=OC_L10N::get('settings',$lang); if(substr($l->t('__language_name__'),0,1)!='_'){//first check if the language name is in the translation file $languages[]=array('code'=>$lang,'name'=>$l->t('__language_name__')); }elseif(isset($languageNames[$lang])){ -- cgit v1.2.3