From 9e9784564ea3be739acabdf1686d69a336c322a5 Mon Sep 17 00:00:00 2001 From: sualko Date: Wed, 2 Sep 2020 10:07:20 +0200 Subject: [PATCH] fix: missing personal settings section fix #68 --- appinfo/info.xml | 1 + lib/AppInfo/Application.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/appinfo/info.xml b/appinfo/info.xml index 8515e35..45f887c 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -38,5 +38,6 @@ Developer wanted! If you have time it would be awesome if you could help to enha OCA\BigBlueButton\Settings\Admin + OCA\BigBlueButton\Settings\Section diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 2ae43a9..2929f81 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -3,6 +3,7 @@ namespace OCA\BigBlueButton\AppInfo; use \OCP\IConfig; +use \OCP\Settings\IManager as ISettingsManager; use \OCP\AppFramework\App; use \OCA\BigBlueButton\Middleware\JoinMiddleware; @@ -30,8 +31,7 @@ class Application extends App { private function registerAsPersonalSetting() { $settingsManager = $this->getContainer()->getServer()->getSettingsManager(); - $settingsManager->registerSection('personal', \OCA\BigBlueButton\Settings\Section::class); - $settingsManager->registerSetting('personal', \OCA\BigBlueButton\Settings\Personal::class); + $settingsManager->registerSetting(ISettingsManager::KEY_PERSONAL_SETTINGS, \OCA\BigBlueButton\Settings\Personal::class); } private function registerAsNavigationEntry() {