From 81567b0198ec1f3e006ab30dbf7a044b9a061612 Mon Sep 17 00:00:00 2001 From: tran Date: Fri, 1 Sep 2017 14:38:32 +0200 Subject: [PATCH] Fix set context for object --- core/src/plugins/action.share/src/ShareCenter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/plugins/action.share/src/ShareCenter.php b/core/src/plugins/action.share/src/ShareCenter.php index dbcd4c8a1e..6f4c358617 100644 --- a/core/src/plugins/action.share/src/ShareCenter.php +++ b/core/src/plugins/action.share/src/ShareCenter.php @@ -559,8 +559,9 @@ public function preProcessDownload(ServerRequestInterface &$requestInterface, Re */ public function migrateLegacyShares(ServerRequestInterface $requestInterface, ResponseInterface &$responseInterface) { + $this->currentContext = $requestInterface->getAttribute("ctx"); LegacyPubliclet::migrateLegacyMeta( - $requestInterface->getAttribute("ctx"), + $this->currentContext, $this, $this->getShareStore(), $this->getRightsManager(),