mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix self test for non leading slash
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
d9a6353bc1
commit
5acebb911b
1 changed files with 2 additions and 2 deletions
|
|
@ -199,9 +199,9 @@ class Notify extends Base {
|
|||
$foundSubfolderChange = false;
|
||||
|
||||
foreach ($changes as $change) {
|
||||
if ($change->getPath() === '/.nc_test_file.txt') {
|
||||
if ($change->getPath() === '/.nc_test_file.txt' || $change->getPath() === '.nc_test_file.txt') {
|
||||
$foundRootChange = true;
|
||||
} else if ($change->getPath() === '/.nc_test_folder/subfile.txt') {
|
||||
} else if ($change->getPath() === '/.nc_test_folder/subfile.txt' || $change->getPath() === '.nc_test_folder/subfile.txt') {
|
||||
$foundSubfolderChange = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue