trunk also <_<

git-svn-id: file:///home/shish/svn/shimmie2/trunk@755 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-04-04 22:41:45 +00:00
parent df8efa475e
commit 3a9063b02b

View File

@ -43,20 +43,15 @@ class Image_Hash_Ban extends Extension {
}
if(is_a($event, 'UploadingImageEvent')) {
global $database;
if(is_a($event, 'DataUploadEvent')) {
global $database;
$image = $event->image;
$tmp_hash = $image->hash;
if ($database->db->GetOne("SELECT COUNT(*) FROM image_bans WHERE hash = ?", $tmp_hash) == 1) {
$event->veto("This image has been banned!");
}
}
}