Skip to content

Commit

Permalink
ENH Stop using Controller::has_curr()
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 13, 2025
1 parent 9544a13 commit c5d9169
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ErrorPageControllerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit c5d9169

Please sign in to comment.