mirror of
				https://github.com/linuxserver/Heimdall.git
				synced 2025-11-01 05:27:45 +09:00 
			
		
		
		
	fix: Don't write existing icons to disk
This commit is contained in:
		
				
					committed by
					
						 Attila Jozsef Kerekes
						Attila Jozsef Kerekes
					
				
			
			
				
	
			
			
			
						parent
						
							66dbbc835e
						
					
				
				
					commit
					7cf9d46eb3
				
			| @@ -214,7 +214,9 @@ class ItemController extends Controller | ||||
|             if (strpos($path, 'icons/icons/') !== false) { | ||||
|                 $path = str_replace('icons/icons/','icons/',$path); | ||||
|             } | ||||
|             Storage::disk('public')->put($path, $contents); | ||||
|             if(! Storage::disk('public')->exists($path)) { | ||||
|                 Storage::disk('public')->put($path, $contents); | ||||
|             } | ||||
|             $request->merge([ | ||||
|                 'icon' => $path, | ||||
|             ]); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user