]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix registration of admin settings and section on app install
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 10 Aug 2016 22:45:15 +0000 (00:45 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 16 Aug 2016 19:05:19 +0000 (21:05 +0200)
lib/private/Installer.php
lib/private/legacy/app.php

index a4300785002aebd76da5092dfdf43a300030b2cb..eed97e18d94ce7eea862b0124ca802527f9f42fe 100644 (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)) {
index bba4f59555eb4e5f3ff356b02b2b163da0d0f390..802c4b908b474183093b7654ac598fce89ea337d 100644 (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) ) {