aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/files.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/files.php')
-rw-r--r--app/controllers/files.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/files.php b/app/controllers/files.php
index 9ed804f..93ef8de 100644
--- a/app/controllers/files.php
+++ b/app/controllers/files.php
@@ -694,9 +694,9 @@ class FilesController extends AuthenticatedController
public function copyhandler_action($destination_id)
{
$to_plugin = Request::get('to_plugin');
- $from_plugin = Request::get('from_plugin');
+ $from_plugin = Request::get('from_plugin');
- $fileref_id = Request::getArray('fileref_id');
+ $fileref_id = $this->flash['fileref_id'] ?? Request::getArray('fileref_id') ?? [];
$copymode = Request::get('copymode');
$user = User::findCurrent();