Merge pull request #19483 from owncloud/make-the-world-a-bit-less-static
[settings] make it less static
This commit is contained in:
commit
4c5b0316ba
|
@ -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;
|
||||
|
|
|
@ -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')];
|
||||
|
|
Loading…
Reference in New Issue