From c5d9169b6fe6f3b95d51e0b27066456b16a438df Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 13 Feb 2025 15:40:24 +1300 Subject: [PATCH] ENH Stop using Controller::has_curr() --- src/ErrorPageControllerExtension.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ErrorPageControllerExtension.php b/src/ErrorPageControllerExtension.php index cc1fc29..ca4119c 100644 --- a/src/ErrorPageControllerExtension.php +++ b/src/ErrorPageControllerExtension.php @@ -38,7 +38,6 @@ protected function onBeforeHTTPError($statusCode, $request, $errorMessage = null private function isAdminController(): bool { - return ($this->owner instanceof LeftAndMain) - || Controller::has_curr() && (Controller::curr() instanceof LeftAndMain); + return ($this->owner instanceof LeftAndMain) || (Controller::curr() instanceof LeftAndMain); } }