[Pkg-owncloud-commits] [owncloud] 03/11: Always add to $loadedApps

David Prévot taffit at moszumanska.debian.org
Sat Sep 12 16:40:51 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 0f4c90acbc4483d79441555154137c6de4ea6a54
Author: Robin McCorkell <rmccorkell at owncloud.com>
Date:   Sat Sep 5 11:43:00 2015 +0100

    Always add to $loadedApps
---
 lib/private/app.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/app.php b/lib/private/app.php
index e885f9e..510ce56 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -71,7 +71,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);
 			}
 		}
@@ -88,6 +87,7 @@ class OC_App {
 	 * @throws \OC\NeedsUpdateException
 	 */
 	public static function loadApp($app, $checkUpgrade = true) {
+		self::$loadedApps[] = $app;
 		if (is_file(self::getAppPath($app) . '/appinfo/app.php')) {
 			if ($checkUpgrade and self::shouldUpgrade($app)) {
 				throw new \OC\NeedsUpdateException();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list