[settings] make it less static

This commit is contained in:
Morris Jobke 2015-09-30 17:58:03 +02:00
parent acd6c9b605
commit 1f385fba04
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ OC_Util::checkAdminUser();
OC_App::setActiveNavigationEntry("admin");
$template = new OC_Template('settings', 'admin', 'user');
$l = OC_L10N::get('settings');
$l = \OC::$server->getL10N('settings');
$showLog = (\OC::$server->getConfig()->getSystemValue('log_type', 'owncloud') === 'owncloud');
$numEntriesToLoad = 3;

View File

@ -148,7 +148,7 @@ sort($groups2);
$tmpl->assign('groups', $groups2);
// add hardcoded forms from the template
$l = OC_L10N::get('settings');
$l = \OC::$server->getL10N('settings');
$formsAndMore = [];
$formsAndMore[]= ['anchor' => 'clientsbox', 'section-name' => $l->t('Sync clients')];
$formsAndMore[]= ['anchor' => 'passwordform', 'section-name' => $l->t('Personal info')];