diff --git a/contrib/image_hash_ban/main.php b/contrib/image_hash_ban/main.php index 172026b6..6fb2396f 100644 --- a/contrib/image_hash_ban/main.php +++ b/contrib/image_hash_ban/main.php @@ -58,7 +58,7 @@ class ImageBan implements Extension { send_event(new AddImageHashBanEvent($_POST['hash'], $_POST['reason'])); $page->set_mode("redirect"); - $page->set_redirect(make_link("admin")); + $page->set_redirect(make_link("image_hash_ban/list/1")); } if(isset($_POST['image_id'])) { $image = Image::by_id(int_escape($_POST['image_id'])); @@ -74,7 +74,7 @@ class ImageBan implements Extension { send_event(new RemoveImageHashBanEvent($_POST['hash'])); $page->set_mode("redirect"); - $page->set_redirect(make_link("admin")); + $page->set_redirect(make_link("image_hash_ban/list/1")); } } else if($event->get_arg(0) == "list") { diff --git a/core/imageboard.pack.php b/core/imageboard.pack.php index a08d50d6..632f2aa0 100644 --- a/core/imageboard.pack.php +++ b/core/imageboard.pack.php @@ -292,7 +292,7 @@ class Image { */ public function delete() { global $database; - $delete_tags_from_image(); + $this->delete_tags_from_image(); $database->execute("DELETE FROM images WHERE id=?", array($this->id)); log_info("core-image", "Deleted Image #{$image->id} ({$image->hash})");