UploadingImageEvent -> DataUploadEvent
git-svn-id: file:///home/shish/svn/shimmie2/branches/branch_2.2@754 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
		
							parent
							
								
									a226a17787
								
							
						
					
					
						commit
						73d5fe129a
					
				@ -43,20 +43,15 @@ class Image_Hash_Ban extends Extension {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
		if(is_a($event, 'UploadingImageEvent')) {
 | 
							if(is_a($event, 'DataUploadEvent')) {
 | 
				
			||||||
		
 | 
					 | 
				
			||||||
			global $database;
 | 
								global $database;
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			
 | 
					 | 
				
			||||||
			$image = $event->image;
 | 
								$image = $event->image;
 | 
				
			||||||
			$tmp_hash = $image->hash;
 | 
								$tmp_hash = $image->hash;
 | 
				
			||||||
			
 | 
								
 | 
				
			||||||
			if ($database->db->GetOne("SELECT COUNT(*) FROM image_bans WHERE hash = ?", $tmp_hash) == 1) {
 | 
								if ($database->db->GetOne("SELECT COUNT(*) FROM image_bans WHERE hash = ?", $tmp_hash) == 1) {
 | 
				
			||||||
			  $event->veto("This image has been banned!");
 | 
								  $event->veto("This image has been banned!");
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					 | 
				
			||||||
			
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
		
 | 
							
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user