diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-27 20:47:41 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-01-28 08:45:07 +0100 |
commit | d8e9cefcfeaf8a98d1af41a118915d0bab34e809 (patch) | |
tree | d2c512187ac614130ef411620504517ab9d6a8a5 /lib | |
parent | 35502b889299e2838e91f8303851d2ca38ad443d (diff) | |
download | nextcloud-server-d8e9cefcfeaf8a98d1af41a118915d0bab34e809.tar.gz nextcloud-server-d8e9cefcfeaf8a98d1af41a118915d0bab34e809.zip |
Move the Personal sections to the settings app
There is no need to have weird magic in the manager. This should be
properly registered in the right way. The settings code is messy
anyways. This is a start to make it a tad more clean.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Settings/Manager.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/private/Settings/Manager.php b/lib/private/Settings/Manager.php index 5b6bea63c6b..46a047e53c6 100644 --- a/lib/private/Settings/Manager.php +++ b/lib/private/Settings/Manager.php @@ -350,11 +350,7 @@ class Manager implements IManager { $this->l = $this->l10nFactory->get('lib'); } - $sections = [ - 0 => [new Section('personal-info', $this->l->t('Personal info'), 0, $this->url->imagePath('core', 'actions/user.svg'))], - 5 => [new Section('security', $this->l->t('Security'), 0, $this->url->imagePath('settings', 'password.svg'))], - 15 => [new Section('sync-clients', $this->l->t('Mobile & desktop'), 0, $this->url->imagePath('core', 'clients/phone.svg'))], - ]; + $sections = []; $legacyForms = \OC_App::getForms('personal'); if (!empty($legacyForms) && $this->hasLegacyPersonalSettingsToRender($legacyForms)) { |