aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2014-09-16 20:27:52 +0200
committerLukas Reschke <lukas@owncloud.com>2014-09-16 20:27:52 +0200
commit2cfa07049f3863e6aa3cce37138526848d294e85 (patch)
treeef1e6981e61ece903ab7da485dac5e5ba65cd3f3 /lib
parent4669ea38357f3f33caaf056d859e6318b75b72e1 (diff)
downloadnextcloud-server-2cfa07049f3863e6aa3cce37138526848d294e85.tar.gz
nextcloud-server-2cfa07049f3863e6aa3cce37138526848d294e85.zip
Remove old upgrade routines
We do not support updates from 6 to 8 directly, therefore we can remove those upgrade routines.
Diffstat (limited to 'lib')
-rw-r--r--lib/private/updater.php20
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/private/updater.php b/lib/private/updater.php
index 1d52f9be374..a239619766e 100644
--- a/lib/private/updater.php
+++ b/lib/private/updater.php
@@ -165,19 +165,6 @@ class Updater extends BasicEmitter {
// (in case it didn't exist before)
file_put_contents(\OC_Config::getValue('datadirectory', \OC::$SERVERROOT . '/data') . '/.ocdata', '');
- /*
- * START CONFIG CHANGES FOR OLDER VERSIONS
- */
- if (!\OC::$CLI && version_compare($installedVersion, '6.90.1', '<')) {
- // Add the trusted_domains config if it is not existant
- // This is added to prevent host header poisoning
- \OC_Config::setValue('trusted_domains', \OC_Config::getValue('trusted_domains', array(\OC_Request::serverHost())));
- }
-
- /*
- * STOP CONFIG CHANGES FOR OLDER VERSIONS
- */
-
// pre-upgrade repairs
$repair = new \OC\Repair(\OC\Repair::getBeforeUpgradeRepairSteps());
$repair->run();
@@ -191,13 +178,6 @@ class Updater extends BasicEmitter {
}
- // upgrade from OC6 to OC7
- // TODO removed it again for OC8
- $sharePolicy = \OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global');
- if ($sharePolicy === 'groups_only') {
- \OC_Appconfig::setValue('core', 'shareapi_only_share_with_group_members', 'yes');
- }
-
if ($this->updateStepEnabled) {
$this->doCoreUpgrade();