@@ 605-609 (lines=5) @@ | ||
602 | } |
|
603 | $new_file_name = $file_name_no_ext.'_'.$i.$ext; |
|
604 | $file_exists = file_exists($path.$new_file_name); |
|
605 | while ($file_exists) { |
|
606 | $i ++; |
|
607 | $new_file_name = $file_name_no_ext.'_'.$i.$ext; |
|
608 | $file_exists = file_exists($path.$new_file_name); |
|
609 | } |
|
610 | ||
611 | if (!empty($session_id)) { |
|
612 | ||
@@ 993-997 (lines=5) @@ | ||
990 | $new_file_name = $file_name_no_ext.'_'.$i.$ext; |
|
991 | $file_exists = file_exists($path.$new_file_name); |
|
992 | ||
993 | while ($file_exists) { |
|
994 | $i ++; |
|
995 | $new_file_name = $file_name_no_ext.'_'.$i.$ext; |
|
996 | $file_exists = file_exists($path.$new_file_name); |
|
997 | } |
|
998 | ||
999 | rename( |
|
1000 | $this->course->backup_path . '/' . $document->path, |