Skip to content
Snippets Groups Projects
Commit 00b4dede authored by Lukas Reschke's avatar Lukas Reschke Committed by GitHub
Browse files

Merge pull request #2550 from nextcloud/smb-notify-rename

Fix order of parameters when getting notified of smb renames
parents 058b536a b5401adc
No related branches found
No related tags found
No related merge requests found
...@@ -499,9 +499,11 @@ class SMB extends Common implements INotifyStorage { ...@@ -499,9 +499,11 @@ class SMB extends Common implements INotifyStorage {
if (is_null($type)) { if (is_null($type)) {
return true; return true;
} }
if ($type === INotifyStorage::NOTIFY_RENAMED && !is_null($oldRenamePath)) { if ($type === INotifyStorage::NOTIFY_RENAMED) {
$result = $callback($type, $path, $oldRenamePath); if (!is_null($oldRenamePath)) {
$oldRenamePath = null; $result = $callback($type, $oldRenamePath, $path);
$oldRenamePath = null;
}
} else { } else {
$result = $callback($type, $path); $result = $callback($type, $path);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment