'blocked image' really means 'attempted to upload a blocked image', make the words reflect that

This commit is contained in:
Shish 2012-03-08 01:37:42 +00:00
parent f928d178f4
commit eb9b29b7b4

View File

@ -47,7 +47,7 @@ class ImageBan extends Extension {
global $database;
$row = $database->get_row("SELECT * FROM image_bans WHERE hash = :hash", array("hash"=>$event->hash));
if($row) {
log_info("image_hash_ban", "Blocked image ({$event->hash})");
log_info("image_hash_ban", "Attempted to upload a blocked image ({$event->hash} - {$row['reason']})");
throw new UploadException("Image ".html_escape($row["hash"])." has been banned, reason: ".format_text($row["reason"]));
}
}