Fixes for cron uploader, fixes #650
This commit is contained in:
		
							parent
							
								
									da10859bb3
								
							
						
					
					
						commit
						8e90279c11
					
				| @ -223,7 +223,7 @@ class CronUploader extends Extension | |||||||
|      */ |      */ | ||||||
|     public function scan_dir(string $path): array |     public function scan_dir(string $path): array | ||||||
|     { |     { | ||||||
|         $ite=new RecursiveDirectoryIterator($path); |         $ite=new RecursiveDirectoryIterator($path, FilesystemIterator::SKIP_DOTS); | ||||||
|      |      | ||||||
|         $bytestotal=0; |         $bytestotal=0; | ||||||
|         $nbfiles=0; |         $nbfiles=0; | ||||||
| @ -264,7 +264,7 @@ class CronUploader extends Extension | |||||||
|         shuffle($this->image_queue); |         shuffle($this->image_queue); | ||||||
| 
 | 
 | ||||||
|         // Upload the file(s)
 |         // Upload the file(s)
 | ||||||
|         for ($i = 0; $i < $upload_count; $i++) { |         for ($i = 0; $i < $upload_count && $i < sizeof($this->image_queue); $i++) { | ||||||
|             $img = $this->image_queue[$i]; |             $img = $this->image_queue[$i]; | ||||||
|              |              | ||||||
|             try { |             try { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user