[image_hash_ban] fix link

This commit is contained in:
Shish 2024-02-24 16:30:56 +00:00 committed by Shish
parent 255e797ea0
commit 73ec7be491

View file

@ -128,7 +128,7 @@ class ImageBan extends Extension
global $user; global $user;
if ($event->parent === "system") { if ($event->parent === "system") {
if ($user->can(Permissions::BAN_IMAGE)) { if ($user->can(Permissions::BAN_IMAGE)) {
$event->add_nav_link("image_bans", new Link('image_hash_ban/list/1'), "Post Bans", NavLink::is_active(["image_hash_ban"])); $event->add_nav_link("image_bans", new Link('image_hash_ban/list'), "Post Bans", NavLink::is_active(["image_hash_ban"]));
} }
} }
} }
@ -137,7 +137,7 @@ class ImageBan extends Extension
{ {
global $user; global $user;
if ($user->can(Permissions::BAN_IMAGE)) { if ($user->can(Permissions::BAN_IMAGE)) {
$event->add_link("Post Bans", make_link("image_hash_ban/list/1")); $event->add_link("Post Bans", make_link("image_hash_ban/list"));
} }
} }