Skip to content

Commit

Permalink
Merge pull request #132 from creative-commoners/pulls/4.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 0dcb286 + ca140d2 commit 119c8e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/GenerateCSVJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ protected function initRequest()
Injector::inst()->registerService($request);
}

if (!Controller::has_curr()) {
if (!Controller::curr()) {
$controller = new Controller();
$controller->setRequest(Injector::inst()->get(HTTPRequest::class));
$controller->pushCurrent();
Expand Down

0 comments on commit 119c8e0

Please sign in to comment.