summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2016-12-15 18:31:54 +0100
committerGitHub <noreply@github.com>2016-12-15 18:31:54 +0100
commitee9f46b13f0f7cf440233a67b823a4f5218b0b21 (patch)
tree75c286fb22658e72c7fc089c9ee64fd2d039c31c /lib
parent5b474e72d5636462d1aa9fed96b4aa77936b1a24 (diff)
parent776f5bcd345b77b05cbb9cd3fd234f3ba40eac25 (diff)
downloadnextcloud-server-ee9f46b13f0f7cf440233a67b823a4f5218b0b21.tar.gz
nextcloud-server-ee9f46b13f0f7cf440233a67b823a4f5218b0b21.zip
Merge pull request #2698 from nextcloud/dont-disable-apps-on-update-if-at-least-php7
Don't disable apps on update if PHP >= 7.0.0
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Updater.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/Updater.php b/lib/private/Updater.php
index e30777227cc..a66d49941cd 100644
--- a/lib/private/Updater.php
+++ b/lib/private/Updater.php
@@ -82,6 +82,12 @@ class Updater extends BasicEmitter {
$this->log = $log;
$this->config = $config;
$this->checker = $checker;
+
+ // If at least PHP 7.0.0 is used we don't need to disable apps as we catch
+ // fatal errors and exceptions and disable the app just instead.
+ if(version_compare(phpversion(), '7.0.0', '>=')) {
+ $this->skip3rdPartyAppsDisable = true;
+ }
}
/**