fix registration of admin settings and section on app install
This commit is contained in:
parent
2e9794f53e
commit
d7bbebb8f5
|
@ -135,7 +135,6 @@ class Installer {
|
|||
}
|
||||
|
||||
\OC_App::setupBackgroundJobs($info['background-jobs']);
|
||||
\OC::$server->getSettingsManager()->setupSettings($info['settings']);
|
||||
|
||||
//run appinfo/install.php
|
||||
if((!isset($data['noinstall']) or $data['noinstall']==false)) {
|
||||
|
|
|
@ -1162,6 +1162,12 @@ class OC_App {
|
|||
if (isset($appData['id'])) {
|
||||
$config->setAppValue($app, 'ocsid', $appData['id']);
|
||||
}
|
||||
|
||||
if(isset($info['settings']) && is_array($info['settings'])) {
|
||||
self::loadApp($app, false);
|
||||
\OC::$server->getSettingsManager()->setupSettings($info['settings']);
|
||||
}
|
||||
|
||||
\OC_Hook::emit('OC_App', 'post_enable', array('app' => $app));
|
||||
} else {
|
||||
if(empty($appName) ) {
|
||||
|
|
Loading…
Reference in New Issue