more sanity checks
This commit is contained in:
		
							parent
							
								
									102c8b413d
								
							
						
					
					
						commit
						fbfa45fadf
					
				@ -16,7 +16,9 @@
 | 
				
			|||||||
class DataUploadEvent extends Event {
 | 
					class DataUploadEvent extends Event {
 | 
				
			||||||
	var $user, $tmpname, $metadata, $hash, $type, $image_id = -1;
 | 
						var $user, $tmpname, $metadata, $hash, $type, $image_id = -1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public function DataUploadEvent($user, $tmpname, $metadata) {
 | 
						public function DataUploadEvent(User $user, $tmpname, $metadata) {
 | 
				
			||||||
 | 
							assert(file_exists($tmpname));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		$this->user = $user;
 | 
							$this->user = $user;
 | 
				
			||||||
		$this->tmpname = $tmpname;
 | 
							$this->tmpname = $tmpname;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -45,7 +45,7 @@ class ImageInfoBoxBuildingEvent extends Event {
 | 
				
			|||||||
class ImageInfoSetEvent extends Event {
 | 
					class ImageInfoSetEvent extends Event {
 | 
				
			||||||
	var $image;
 | 
						var $image;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	public function ImageInfoSetEvent($image) {
 | 
						public function ImageInfoSetEvent(Image $image) {
 | 
				
			||||||
		$this->image = $image;
 | 
							$this->image = $image;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user