forked from Public/pics
		
	Write new thumbnail filenames to parent Image object as well
This commit is contained in:
		
							parent
							
								
									9010123d18
								
							
						
					
					
						commit
						44bb501d13
					
				| @ -335,6 +335,11 @@ class Thumbnail | ||||
| 		{ | ||||
| 			$thumb_selector = $this->width . 'x' . $this->height . $this->filename_suffix; | ||||
| 			$this->thumbnails[$thumb_selector] = $filename !== 'NULL' ? $filename : null; | ||||
| 
 | ||||
| 			// For consistency, write new thumbnail filename to parent Image object.
 | ||||
| 			// TODO: there could still be an inconsistency if multiple objects exists for the same image asset.
 | ||||
| 			$this->image->getThumbnails()[$thumb_selector] = $this->thumbnails[$thumb_selector]; | ||||
| 
 | ||||
| 			return $success; | ||||
| 		} | ||||
| 		else | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user