mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Correctly remove admin sections and settings
This commit is contained in:
parent
6a6af86a1c
commit
43ff2f05fd
1 changed files with 3 additions and 3 deletions
|
|
@ -105,10 +105,10 @@ class Manager implements IManager {
|
|||
$appInfo = \OC_App::getAppInfo($appId); // hello static legacy
|
||||
|
||||
if(isset($appInfo['settings'][IManager::KEY_ADMIN_SECTION])) {
|
||||
$this->remove(self::TABLE_ADMIN_SECTIONS, $appInfo['settings'][IManager::KEY_ADMIN_SECTION]);
|
||||
$this->remove(self::TABLE_ADMIN_SECTIONS, trim($appInfo['settings'][IManager::KEY_ADMIN_SECTION], '\\'));
|
||||
}
|
||||
if(isset($appInfo['settings'][IManager::KEY_ADMIN_SETTINGS])) {
|
||||
$this->remove(self::TABLE_ADMIN_SETTINGS, $appInfo['settings'][IManager::KEY_ADMIN_SETTINGS]);
|
||||
$this->remove(self::TABLE_ADMIN_SETTINGS, trim($appInfo['settings'][IManager::KEY_ADMIN_SETTINGS], '\\'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -302,7 +302,7 @@ class Manager implements IManager {
|
|||
|
||||
if(!$settings instanceof ISettings) {
|
||||
$this->log->error(
|
||||
'Admin section instance must implement \OCP\ISection. Invalid class: {class}',
|
||||
'Admin section instance must implement \OCP\Settings\ISection. Invalid class: {class}',
|
||||
['class' => $settingsClassName]
|
||||
);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue