diff options
author | steckbrief <steckbrief@chefmail.de> | 2017-05-06 14:10:31 +0200 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2017-05-06 14:10:31 +0200 |
commit | 49c6bb9f0b4ff2cc8b6a8d45d3160f3581b10026 (patch) | |
tree | 1b7c185e7e07b8630c461eb0ba3876d2269d5542 /storage-backend/lib/functions.filetransfer.inc.php | |
parent | 14753b0d57eb0e6b679431b97064f8d335ebb867 (diff) |
storage-backend: Add functionality to delete a file via an xmpp server; removed possibility to request a delete token and delete the file afterwards via xmpp client
Diffstat (limited to 'storage-backend/lib/functions.filetransfer.inc.php')
-rw-r--r-- | storage-backend/lib/functions.filetransfer.inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage-backend/lib/functions.filetransfer.inc.php b/storage-backend/lib/functions.filetransfer.inc.php index 607d30f..440c41a 100644 --- a/storage-backend/lib/functions.filetransfer.inc.php +++ b/storage-backend/lib/functions.filetransfer.inc.php @@ -36,7 +36,7 @@ function readSlots($jid) { $slotUUID = $entry; $params = loadSlotParameters($slotUUID, $config); $senderBareJid = getBareJid($params['user_jid']); - $recipientBareJid = (array_key_exists('receipient_jid', $params)) ? getBareJid($params['receipient_jid']) : ''; + $recipientBareJid = (array_key_exists('recipient_jid', $params)) ? getBareJid($params['recipient_jid']) : ''; if ($senderBareJid == $jid || $recipientBareJid == $jid) { $filePath = getUploadFilePath($slotUUID, $config, $params['filename']); $file = []; @@ -52,8 +52,8 @@ function readSlots($jid) { $file['fileinfo']['content_type'] = $params['content_type']; $file['sender_jid'] = $senderBareJid; $file['recipient_jid'] = $recipientBareJid; - if (null == $file['receipient_jid']) { - $file['receipient_jid'] = ""; + if (null == $file['recipient_jid']) { + $file['recipient_jid'] = ""; } $slots[] = $file; } |