diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-17 12:49:45 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-17 15:19:10 +0200 |
commit | 3000f0125fe9470012c362a13ecc33a31cceff18 (patch) | |
tree | 0425400f4844391c8457984443198dd7574cf4ab /settings/controller/encryptioncontroller.php | |
parent | 87234103195c64ab1791a7865c9a9f1c0486c418 (diff) | |
download | nextcloud-server-3000f0125fe9470012c362a13ecc33a31cceff18.tar.gz nextcloud-server-3000f0125fe9470012c362a13ecc33a31cceff18.zip |
don't move keys if the key where already moved in a previous migration run
Diffstat (limited to 'settings/controller/encryptioncontroller.php')
-rw-r--r-- | settings/controller/encryptioncontroller.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/settings/controller/encryptioncontroller.php b/settings/controller/encryptioncontroller.php index 87cbf0a4bf1..7c952962c1a 100644 --- a/settings/controller/encryptioncontroller.php +++ b/settings/controller/encryptioncontroller.php @@ -25,6 +25,7 @@ use OC\Files\View; use OCA\Encryption\Migration; use OCP\IL10N; use OCP\AppFramework\Controller; +use OCP\ILogger; use OCP\IRequest; use OCP\IConfig; use OC\DB\Connection; @@ -50,6 +51,9 @@ class EncryptionController extends Controller { /** @var View */ private $view; + /** @var ILogger */ + private $logger; + /** * @param string $appName * @param IRequest $request @@ -58,6 +62,7 @@ class EncryptionController extends Controller { * @param \OC\DB\Connection $connection * @param IUserManager $userManager * @param View $view + * @param ILogger $logger */ public function __construct($appName, IRequest $request, @@ -65,7 +70,8 @@ class EncryptionController extends Controller { IConfig $config, Connection $connection, IUserManager $userManager, - View $view) { + View $view, + ILogger $logger) { parent::__construct($appName, $request); $this->l10n = $l10n; $this->config = $config; @@ -85,7 +91,7 @@ class EncryptionController extends Controller { try { - $migration = new Migration($this->config, $this->view, $this->connection); + $migration = new Migration($this->config, $this->view, $this->connection, $this->logger); $migration->reorganizeSystemFolderStructure(); $migration->updateDB(); |