From 4f9c51cecdc06fd80c886218b11cfe2a5e812174 Mon Sep 17 00:00:00 2001 From: Victor Dubiniuk Date: Tue, 29 Oct 2013 16:27:09 +0300 Subject: [PATCH] Duplicates postfixes start with (2) now --- lib/helper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helper.php b/lib/helper.php index 5ceeb1b0..497eb544 100644 --- a/lib/helper.php +++ b/lib/helper.php @@ -16,7 +16,7 @@ class Helper{ const APP_ID = 'documents'; public static function getNewFileName($view, $path, $prepend = ' '){ - $fileNum = 0; + $fileNum = 1; while ($view->file_exists($path)){ $fileNum += 1;