diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-02-03 17:06:17 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-02-03 17:06:57 +0100 |
commit | b168c191bce729e92fcb927b54238ffd2c05d668 (patch) | |
tree | 0b91c0d4f68f14b3d152b6d5dfb3eaa4aae14392 /lib/repair | |
parent | 23c6a0cf99818c986f5a6537cf765fa9fdff5757 (diff) | |
download | nextcloud-server-b168c191bce729e92fcb927b54238ffd2c05d668.tar.gz nextcloud-server-b168c191bce729e92fcb927b54238ffd2c05d668.zip |
Revert "enabled disabled files app in repair step"
This reverts commit d70160c6077ca017d6cb7d61f066fe33e3b1e081.
Diffstat (limited to 'lib/repair')
-rw-r--r-- | lib/repair/enablefilesapp.php | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/lib/repair/enablefilesapp.php b/lib/repair/enablefilesapp.php deleted file mode 100644 index a3298cf76b3..00000000000 --- a/lib/repair/enablefilesapp.php +++ /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']); - } - } -} |