]> source.dussan.org Git - nextcloud-server.git/commitdiff
Revert "enabled disabled files app in repair step"
authorMorris Jobke <hey@morrisjobke.de>
Tue, 3 Feb 2015 16:06:17 +0000 (17:06 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 3 Feb 2015 16:06:57 +0000 (17:06 +0100)
This reverts commit d70160c6077ca017d6cb7d61f066fe33e3b1e081.

lib/private/repair.php
lib/repair/enablefilesapp.php [deleted file]

index c74283896fdd3da0cc0a77a61570c9aab0749603..d9fd99707e8f2c5a59de352c6b52f29c82317b03 100644 (file)
@@ -13,7 +13,6 @@ use OC\Hooks\Emitter;
 use OC\Repair\AssetCache;
 use OC\Repair\CleanTags;
 use OC\Repair\Collation;
-use OC\Repair\EnableFilesApp;
 use OC\Repair\FillETags;
 use OC\Repair\InnoDB;
 use OC\Repair\RepairConfig;
@@ -85,7 +84,6 @@ class Repair extends BasicEmitter {
                        new AssetCache(),
                        new FillETags(\OC_DB::getConnection()),
                        new CleanTags(\OC_DB::getConnection()),
-                       new EnableFilesApp(\OC::$server->getConfig()),
                );
        }
 
diff --git a/lib/repair/enablefilesapp.php b/lib/repair/enablefilesapp.php
deleted file mode 100644 (file)
index a3298cf..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-/**
- * Copyright (c) 2015 Morris Jobke <hey@morrisjobke.de>
- * This file is licensed under the Affero General Public License version 3 or
- * later.
- * See the COPYING-README file.
- */
-
-namespace OC\Repair;
-
-use OC\Hooks\BasicEmitter;
-use OC\RepairStep;
-use OCP\IConfig;
-
-/**
- * Class EnableFilesApp - enables files app if disabled
- *
- * TODO: remove this with ownCloud 8.1 - this isn't possible anymore with 8.0
- *
- * @package OC\Repair
- */
-class EnableFilesApp extends BasicEmitter implements RepairStep {
-
-       /** @var IConfig */
-       protected $config;
-
-       /**
-        * @param IConfig $config
-        */
-       public function __construct(IConfig $config) {
-               $this->config = $config;
-       }
-
-       /**
-        * @return string
-        */
-       public function getName() {
-               return 'Re-enable file app';
-       }
-
-       /**
-        * Enables the files app if it is disabled
-        */
-       public function run() {
-               if ($this->config->getAppValue('files', 'enabled', 'no') !== 'yes') {
-                       $this->config->setAppValue('files', 'enabled', 'yes');
-                       $this->emit('\OC\Repair', 'info', ['Files app was disabled - re-enabled']);
-               }
-       }
-}