Skip to content

Commit

Permalink
Merge pull request #132 from creative-commoners/pulls/3.0/ctrl-curr
Browse files Browse the repository at this point in the history
ENH Stop using Controller::has_curr()
  • Loading branch information
GuySartorelli authored Feb 16, 2025
2 parents 2459f70 + c5d9169 commit f336832
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 f336832

Please sign in to comment.