summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-02-17 12:00:39 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-02-24 12:02:36 +0100
commitbbf7f56f949f48ec0cf95d416b431d0cd739582f (patch)
treeadb18b5b46738e81093444ae1fa860e48647373a /lib/private/app.php
parente5c6af51027f786d74f859584f0aa6c85db6ead6 (diff)
downloadnextcloud-server-bbf7f56f949f48ec0cf95d416b431d0cd739582f.tar.gz
nextcloud-server-bbf7f56f949f48ec0cf95d416b431d0cd739582f.zip
3rd-party apps are disabled on upgrade - refs #14026
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php33
1 files changed, 0 insertions, 33 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 365b0d09065..2950ded078a 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -959,39 +959,6 @@ class OC_App {
}
/**
- * check if the current enabled apps are compatible with the current
- * ownCloud version. disable them if not.
- * This is important if you upgrade ownCloud and have non ported 3rd
- * party apps installed.
- *
- * @param array $apps optional app id list to check, uses all enabled apps
- * when not specified
- *
- * @return array containing the list of ids of the disabled apps
- */
- public static function checkAppsRequirements($apps = array()) {
- $disabledApps = array();
- if (empty($apps)) {
- $apps = OC_App::getEnabledApps();
- }
- $version = OC_Util::getVersion();
- foreach ($apps as $app) {
- // check if the app is compatible with this version of ownCloud
- $info = OC_App::getAppInfo($app);
- if (!self::isAppCompatible($version, $info)) {
- OC_Log::write('core',
- 'App "' . $info['name'] . '" (' . $app . ') can\'t be used because it is'
- . ' not compatible with this version of ownCloud',
- OC_Log::ERROR);
- OC_App::disable($app);
- OC_Hook::emit('update', 'success', 'Disabled ' . $info['name'] . ' app because it is not compatible');
- $disabledApps[] = $app;
- }
- }
- return $disabledApps;
- }
-
- /**
* Adjust the number of version parts of $version1 to match
* the number of version parts of $version2.
*