Duplicates postfixes start with (2) now

This commit is contained in:
Victor Dubiniuk 2013-10-29 16:27:09 +03:00
parent 3bb39d50d6
commit 4f9c51cecd

View File

@ -16,7 +16,7 @@ class Helper{
const APP_ID = 'documents'; const APP_ID = 'documents';
public static function getNewFileName($view, $path, $prepend = ' '){ public static function getNewFileName($view, $path, $prepend = ' '){
$fileNum = 0; $fileNum = 1;
while ($view->file_exists($path)){ while ($view->file_exists($path)){
$fileNum += 1; $fileNum += 1;