Background fix. Stay away from OC_Image
This commit is contained in:
		
							parent
							
								
									98ad57eb1a
								
							
						
					
					
						commit
						9bbc4f3bc6
					
				| @ -61,10 +61,9 @@ if (method_exists('\OCP\Preview', 'show')){ | |||||||
| 		$iconFile = \OC::$SERVERROOT . '/core/img/filetypes/file.png'; | 		$iconFile = \OC::$SERVERROOT . '/core/img/filetypes/file.png'; | ||||||
| 	} | 	} | ||||||
| 	 | 	 | ||||||
| 	$iconData = base64_encode(file_get_contents($iconFile)); |  | ||||||
| 	$image = new \OC_Image($iconData); |  | ||||||
| 	\OC_Util::obEnd(); | 	\OC_Util::obEnd(); | ||||||
| 
 | 
 | ||||||
| 	echo $image->show(); | 	header('Content-Type: ' . \OCP\Files::getMimeType($iconFile)); | ||||||
|  | 	readfile($iconFile); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user