mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-04 02:07:33 -05:00 
			
		
		
		
	Minor fixes for company exporter
This commit is contained in:
		
							parent
							
								
									8fd4a3f202
								
							
						
					
					
						commit
						ca7631e950
					
				@ -480,10 +480,11 @@ class CompanyExport implements ShouldQueue
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $file_name = date('Y-m-d').'_'.str_replace(' ', '_', $this->company->present()->name() . '_' . $this->company->company_key .'.zip');
 | 
					        $file_name = date('Y-m-d').'_'.str_replace(' ', '_', $this->company->present()->name() . '_' . $this->company->company_key .'.zip');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $path = public_path('storage/backups/');
 | 
					        //$path = public_path('storage/backups/');
 | 
				
			||||||
 | 
					        $path = 'backups';
 | 
				
			||||||
        
 | 
					        
 | 
				
			||||||
        if(!Storage::exists($path))
 | 
					        if(!Storage::disk(config('filesystems.default'))->exists($path))
 | 
				
			||||||
            Storage::makeDirectory($path, 0775);
 | 
					            Storage::disk(config('filesystems.default'))->makeDirectory($path, 0775);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $zip_path = public_path('storage/backups/'.$file_name);
 | 
					        $zip_path = public_path('storage/backups/'.$file_name);
 | 
				
			||||||
        $zip = new \ZipArchive();
 | 
					        $zip = new \ZipArchive();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user