Browse Source
Remove unused $enableAppsCache in OC_App
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
pull/5833/head
Tobia De Koninck
9 years ago
committed by
Morris Jobke
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with
0 additions and
13 deletions
-
lib/private/legacy/app.php
|
|
|
@ -157,13 +157,6 @@ class OC_App { |
|
|
|
\OC::$server->getAppManager()->disableApp($app); |
|
|
|
} |
|
|
|
} |
|
|
|
if (self::isType($app, array('authentication'))) { |
|
|
|
// since authentication apps affect the "is app enabled for group" check,
|
|
|
|
// the enabled apps cache needs to be cleared to make sure that the
|
|
|
|
// next time getEnableApps() is called it will also include apps that were
|
|
|
|
// enabled for groups
|
|
|
|
self::$enabledAppsCache = []; |
|
|
|
} |
|
|
|
\OC::$server->getEventLogger()->end('load_app_' . $app); |
|
|
|
} |
|
|
|
|
|
|
|
@ -329,11 +322,6 @@ class OC_App { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* get all enabled apps |
|
|
|
*/ |
|
|
|
protected static $enabledAppsCache = []; |
|
|
|
|
|
|
|
/** |
|
|
|
* Returns apps enabled for the current user. |
|
|
|
* |
|
|
|
@ -393,7 +381,6 @@ class OC_App { |
|
|
|
*/ |
|
|
|
public function enable(string $appId, |
|
|
|
array $groups = []) { |
|
|
|
self::$enabledAppsCache = []; // flush
|
|
|
|
|
|
|
|
// Check if app is already downloaded
|
|
|
|
$installer = \OC::$server->query(Installer::class); |
|
|
|
|