fix registration of admin settings and section on app install

This commit is contained in:
Arthur Schiwon 2016-08-11 00:45:15 +02:00 committed by Lukas Reschke
parent 2e9794f53e
commit d7bbebb8f5
No known key found for this signature in database
GPG Key ID: B9F6980CF6E759B1
2 changed files with 6 additions and 1 deletions

View File

@ -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)) {

View File

@ -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) ) {