diff options
author | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-04 22:11:45 +0100 |
---|---|---|
committer | Robin McCorkell <rmccorkell@owncloud.com> | 2015-09-05 00:04:58 +0100 |
commit | b3acf09c60f6d4c9ea4583a65e9a14d597ee91e4 (patch) | |
tree | f5de1cf8d5eeaf96b0532c83f3e590decf0d8fe2 /lib/private | |
parent | 7f8bca64cbb32df8eca313a886fd21e54fc24f13 (diff) | |
download | nextcloud-server-b3acf09c60f6d4c9ea4583a65e9a14d597ee91e4.tar.gz nextcloud-server-b3acf09c60f6d4c9ea4583a65e9a14d597ee91e4.zip |
Only add valid root for enabled apps
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/app.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index f1a1d27ae66..f6a81f9945f 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -105,7 +105,6 @@ class OC_App { ob_start(); foreach ($apps as $app) { if ((is_null($types) or self::isType($app, $types)) && !in_array($app, self::$loadedApps)) { - self::$loadedApps[] = $app; self::loadApp($app); } } @@ -122,6 +121,8 @@ class OC_App { * @throws \OC\NeedsUpdateException */ public static function loadApp($app, $checkUpgrade = true) { + self::$loadedApps[] = $app; + \OC::$loader->addValidRoot(self::getAppPath($app)); if (is_file(self::getAppPath($app) . '/appinfo/app.php')) { \OC::$server->getEventLogger()->start('load_app_' . $app, 'Load app: ' . $app); if ($checkUpgrade and self::shouldUpgrade($app)) { |