diff --git a/engine/request.php b/engine/request.php index a610fde..789b2b5 100644 --- a/engine/request.php +++ b/engine/request.php @@ -98,6 +98,7 @@ function ajax_response(mixed $data, int $code = 200): void { function ensure_admin() { if (!is_admin()) forbidden(); + set_skin_opts(['inside_admin_interface' => true]); } function ensure_xhr() {