Skip to content

Commit

Permalink
Fixes #36067 - start rename index with 2
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 authored and individual-it committed Aug 21, 2019
1 parent 7407170 commit e66f092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/dav/lib/Files/PublicFiles/PublicFilesPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private function newFileName($path) {
$fileName = $pathInfo['filename'];
$ext = $pathInfo['extension'];

$i = 1;
$i = 2;
while ($this->server->tree->nodeExists("$dirName/$fileName ($i).$ext")) {
$i++;
}
Expand Down

0 comments on commit e66f092

Please sign in to comment.