From 49c6bb9f0b4ff2cc8b6a8d45d3160f3581b10026 Mon Sep 17 00:00:00 2001 From: steckbrief Date: Sat, 6 May 2017 14:10:31 +0200 Subject: 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 --- storage-backend/lib/functions.filetransfer.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'storage-backend/lib/functions.filetransfer.inc.php') 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; } -- cgit v1.2.3